public interface EventListener
EventSource| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted()
Marks the end of all event callbacks.
|
void |
onCustomEvent(java.lang.Object event)
Typically specific instances on
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. |
void |
onCustomEvent(java.lang.Object event,
long duration,
java.util.concurrent.TimeUnit timeUnit)
Typically specific instances on
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. |
void |
onCustomEvent(java.lang.Object event,
long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Typically specific instances on
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. |
void |
onCustomEvent(java.lang.Object event,
java.lang.Throwable throwable)
Typically specific instances on
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. |
void onCompleted()
void onCustomEvent(java.lang.Object event)
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. eg: Creating a custom protocol on top of an
existing protocol like TCP, would perhaps require some additional events. In such a case, this callback can be
utilized.event - Event published.onCustomEvent(Object, long, TimeUnit),
onCustomEvent(Object, Throwable),
onCustomEvent(Object, long, TimeUnit, Throwable)void onCustomEvent(java.lang.Object event,
long duration,
java.util.concurrent.TimeUnit timeUnit)
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. eg: Creating a custom protocol on top of an
existing protocol like TCP, would perhaps require some additional events. In such a case, this callback can be
utilized.
One should use this overload as opposed to onCustomEvent(Object) if the custom event need not be created
per invocation but has to be associated with a duration. This is a simple optimization to reduce event creation
overhead.event - Event published.duration - Duration associated with this event. The semantics of this duration is totally upto the published
event.timeUnit - Timeunit for the duration.onCustomEvent(Object, long, TimeUnit),
onCustomEvent(Object, Throwable),
onCustomEvent(Object, long, TimeUnit, Throwable)void onCustomEvent(java.lang.Object event,
java.lang.Throwable throwable)
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. eg: Creating a custom protocol on top of an
existing protocol like TCP, would perhaps require some additional events. In such a case, this callback can be
utilized.
One should use this overload as opposed to onCustomEvent(Object) if the custom event need not be created
per invocation but has to be associated with an error. This is a simple optimization to reduce event creation
overhead.event - Event published.onCustomEvent(Object, long, TimeUnit),
onCustomEvent(Object, Throwable),
onCustomEvent(Object, long, TimeUnit, Throwable)void onCustomEvent(java.lang.Object event,
long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
EventListener will provide events that are fired by RxNetty, however,
there may be cases, where a user would want to emit custom events. eg: Creating a custom protocol on top of an
existing protocol like TCP, would perhaps require some additional events. In such a case, this callback can be
utilized.
One should use this overload as opposed to onCustomEvent(Object) if the custom event need not be created
per invocation but has to be associated with a duration and an error. This is a simple optimization to reduce
event creation overhead.event - Event published.duration - Duration associated with this event. The semantics of this duration is totally upto the published
event.timeUnit - Timeunit for the duration.throwable - Error associated with the event.onCustomEvent(Object, long, TimeUnit),
onCustomEvent(Object, Throwable),
onCustomEvent(Object, long, TimeUnit, Throwable)