c

org.apache.spark.network.client

TransportResponseHandler

class TransportResponseHandler extends MessageHandler[ResponseMessage]

Handler that processes server responses, in response to requests issued from a TransportClient. It works by tracking the list of outstanding requests (and their callbacks).

Concurrency: thread safe and can be called from multiple threads.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransportResponseHandler
  2. MessageHandler
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TransportResponseHandler(channel: Channel)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addFetchRequest(streamChunkId: StreamChunkId, callback: ChunkReceivedCallback): Unit
  5. def addRpcRequest(requestId: Long, callback: BaseResponseCallback): Unit
  6. def addStreamCallback(streamId: String, callback: StreamCallback): Unit
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def channelActive(): Unit

    Invoked when the channel this MessageHandler is on is active.

    Invoked when the channel this MessageHandler is on is active.

    Definition Classes
    TransportResponseHandlerMessageHandler
    Annotations
    @Override()
  9. def channelInactive(): Unit

    Invoked when the channel this MessageHandler is on is inactive.

    Invoked when the channel this MessageHandler is on is inactive.

    Definition Classes
    TransportResponseHandlerMessageHandler
    Annotations
    @Override()
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def deactivateStream(): Unit
    Annotations
    @VisibleForTesting()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def exceptionCaught(cause: Throwable): Unit

    Invoked when an exception was caught on the Channel.

    Invoked when an exception was caught on the Channel.

    Definition Classes
    TransportResponseHandlerMessageHandler
    Annotations
    @Override()
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getTimeOfLastRequestNs(): Long

    Returns the time in nanoseconds of when the last request was sent out.

  18. def handle(message: ResponseMessage): Unit

    Handles the receipt of a single message.

    Handles the receipt of a single message.

    Definition Classes
    TransportResponseHandlerMessageHandler
    Annotations
    @Override()
  19. def hasOutstandingRequests(): Boolean

    Check if there are any outstanding requests (fetch requests + rpcs)

  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def numOutstandingRequests(): Int

    Returns total number of outstanding requests (fetch requests + rpcs)

  26. def removeFetchRequest(streamChunkId: StreamChunkId): Unit
  27. def removeRpcRequest(requestId: Long): Unit
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def updateTimeOfLastRequest(): Unit

    Updates the time of the last request to the current system time.

  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped