vertx / io.vertx.ext.sync

Package io.vertx.ext.sync

Types

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

Receiver

interface Receiver<T : Any>

Represents a synchronous receiver of events.

Note that the `receive` methods may block the calling fiber but will not block an underlying kernel thread.

SuspendableRunnable

interface SuspendableRunnable

Sync

open class Sync

This class contains various static methods to allowing events and asynchronous results to be accessed in a synchronous way.

SyncVerticle

abstract class SyncVerticle : AbstractVerticle

A `Verticle` which runs its `start` and `stop` methods using fibers. You should subclass this class instead of `AbstractVerticle` to create any verticles that use vertx-sync.