Top Fields Constructors Methods
io.vertx.core.eventbus.impl

pack-priv Class ReplyHandler<T>

extends HandlerRegistration<T>
implements Handler<Long>
Class Inheritance
All Implemented Interfaces
io.vertx.core.Handler
Imports
io.vertx.core.Future, .Handler, .Promise, io.vertx.core.eventbus.Message, .ReplyException, .ReplyFailure, io.vertx.core.impl.ContextInternal, io.vertx.core.spi.tracing.TagExtractor, .VertxTracer

Field Summary

Modifier and TypeField and Description
private final ContextInternal
private final EventBusImpl
private final String
private final Promise<Message<T>>
private final boolean
private final long
private final long
pack-priv Object
Inherited from io.vertx.core.eventbus.impl.HandlerRegistration:
addressbus

Constructor Summary

AccessConstructor and Description
pack-priv
ReplyHandler(EventBusImpl eventBus, ContextInternal context, String address, String repliedAddress, boolean src, long timeout)

Method Summary

Modifier and TypeMethod and Description
protected void
private void
protected boolean
pack-priv void
public void
handle(Long
the event to handle
id
)

Implements io.vertx.core.Handler.handle.

Something has happened, so handle it.

pack-priv void
pack-priv Future<Message<T>>
private void
trace(Object reply, Throwable failure)

Inherited from io.vertx.core.eventbus.impl.HandlerRegistration:
closediscarddispatchisRegisteredreceiveregisterunregisterunregister

Field Detail

contextback to summary
private final ContextInternal context

Hides io.vertx.core.eventbus.impl.HandlerRegistration.context.

eventBusback to summary
private final EventBusImpl eventBus
repliedAddressback to summary
private final String repliedAddress
resultback to summary
private final Promise<Message<T>> result
srcback to summary
private final boolean src

Hides io.vertx.core.eventbus.impl.HandlerRegistration.src.

timeoutback to summary
private final long timeout
timeoutIDback to summary
private final long timeoutID
traceback to summary
pack-priv Object trace

Constructor Detail

ReplyHandlerback to summary
pack-priv ReplyHandler(EventBusImpl eventBus, ContextInternal context, String address, String repliedAddress, boolean src, long timeout)

Method Detail

dispatchback to summary
protected void dispatch(Message<T> reply, ContextInternal context, Handler<Message<T>> handler)

Implements abstract io.vertx.core.eventbus.impl.HandlerRegistration.dispatch.

Annotations
@Override
doFailback to summary
private void doFail(ReplyException failure)
doReceiveback to summary
protected boolean doReceive(Message<T> reply)

Implements abstract io.vertx.core.eventbus.impl.HandlerRegistration.doReceive.

Annotations
@Override
failback to summary
pack-priv void fail(ReplyException failure)
handleback to summary
public void handle(Long id)

Implements io.vertx.core.Handler.handle.

Doc from io.vertx.core.Handler.handle.

Something has happened, so handle it.

Parameters
id:Long

the event to handle

Annotations
@Override
registerback to summary
pack-priv void register()
resultback to summary
pack-priv Future<Message<T>> result()
traceback to summary
private void trace(Object reply, Throwable failure)