public abstract class HandlerRegistration<T> extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
String |
address |
EventBusImpl |
bus |
ContextInternal |
context |
boolean |
src |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Promise<Void> completion)
Close this resource, the
completion promise must be notified when the operation has completed. |
protected abstract void |
dispatch(Message<T> msg,
ContextInternal context,
Handler<Message<T>> handler) |
protected abstract boolean |
doReceive(Message<T> msg) |
boolean |
isRegistered() |
Future<Void> |
unregister() |
void |
unregister(Handler<AsyncResult<Void>> completionHandler) |
public final ContextInternal context
public final EventBusImpl bus
public final String address
public final boolean src
protected abstract void dispatch(Message<T> msg, ContextInternal context, Handler<Message<T>> handler)
public boolean isRegistered()
public void unregister(Handler<AsyncResult<Void>> completionHandler)
Copyright © 2021. All rights reserved.