public class CountRandomly extends BaseHandler
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
CountRandomly.CounterHandler |
| Modifier and Type | Field and Description |
|---|---|
private CountRandomly.CounterHandler |
counter |
private long |
startTime |
| Constructor and Description |
|---|
CountRandomly() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
onReactorFinal(Event event) |
void |
onReactorInit(Event event) |
void |
onTimerTask(Event event) |
add, children, getHandler, getHandler, handle, onConnectionBound, onConnectionFinal, onConnectionInit, onConnectionLocalClose, onConnectionLocalOpen, onConnectionRemoteClose, onConnectionRemoteOpen, onConnectionUnbound, onDelivery, onLinkFinal, onLinkFlow, onLinkInit, onLinkLocalClose, onLinkLocalDetach, onLinkLocalOpen, onLinkRemoteClose, onLinkRemoteDetach, onLinkRemoteOpen, onReactorQuiesced, onSelectableError, onSelectableExpired, onSelectableFinal, onSelectableInit, onSelectableReadable, onSelectableUpdated, onSelectableWritable, onSessionFinal, onSessionInit, onSessionLocalClose, onSessionLocalOpen, onSessionRemoteClose, onSessionRemoteOpen, onTransport, onTransportClosed, onTransportError, onTransportHeadClosed, onTransportTailClosed, onUnhandled, setHandler, setHandlerprivate long startTime
private CountRandomly.CounterHandler counter
public void onReactorInit(Event event)
onReactorInit in interface CoreHandleronReactorInit in class BaseHandlerpublic void onTimerTask(Event event)
onTimerTask in interface CoreHandleronTimerTask in class BaseHandlerpublic void onReactorFinal(Event event)
onReactorFinal in interface CoreHandleronReactorFinal in class BaseHandlerpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException