vertx / io.vertx.ext.sync / HandlerReceiverAdaptor

HandlerReceiverAdaptor

interface HandlerReceiverAdaptor<T : Any> : Handler<T>, Receiver<T>

Represents an object that is both a handler of a particular event and also a receiver of that event.

In other words it converts an asynchronous stream of events into a synchronous receiver of events

Author
Tim Fox

Inherited Functions

receive

abstract fun receive(): T

Return an event when one is available. This method will block the fiber until one is available. No kernel thread is blocked.

abstract fun receive(timeout: Long): T

Return an event when one is available. This method will block the fiber until one is available, or timeout occurs. No kernel thread is blocked.

receivePort

abstract fun receivePort(): ReceivePort<T>