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.
- Alphabetic
- By Inheritance
- TransportResponseHandler
- MessageHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TransportResponseHandler(channel: Channel)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addFetchRequest(streamChunkId: StreamChunkId, callback: ChunkReceivedCallback): Unit
- def addRpcRequest(requestId: Long, callback: BaseResponseCallback): Unit
- def addStreamCallback(streamId: String, callback: StreamCallback): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- TransportResponseHandler → MessageHandler
- Annotations
- @Override()
- 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
- TransportResponseHandler → MessageHandler
- Annotations
- @Override()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def deactivateStream(): Unit
- Annotations
- @VisibleForTesting()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- TransportResponseHandler → MessageHandler
- Annotations
- @Override()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getTimeOfLastRequestNs(): Long
Returns the time in nanoseconds of when the last request was sent out.
- def handle(message: ResponseMessage): Unit
Handles the receipt of a single message.
Handles the receipt of a single message.
- Definition Classes
- TransportResponseHandler → MessageHandler
- Annotations
- @Override()
- def hasOutstandingRequests(): Boolean
Check if there are any outstanding requests (fetch requests + rpcs)
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def numOutstandingRequests(): Int
Returns total number of outstanding requests (fetch requests + rpcs)
- def removeFetchRequest(streamChunkId: StreamChunkId): Unit
- def removeRpcRequest(requestId: Long): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateTimeOfLastRequest(): Unit
Updates the time of the last request to the current system time.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()