public class Driver extends BaseHandler
Constructor and Description |
---|
Driver(Collector collector,
Handler... handlers) |
Modifier and Type | Method and Description |
---|---|
void |
listen(String host,
int port) |
void |
onConnectionLocalOpen(Event evt) |
void |
onTransport(Event evt) |
void |
processEvents() |
void |
run() |
add, children, getHandler, getHandler, handle, onConnectionBound, onConnectionFinal, onConnectionInit, onConnectionLocalClose, onConnectionRemoteClose, onConnectionRemoteOpen, onConnectionUnbound, onDelivery, onLinkFinal, onLinkFlow, onLinkInit, onLinkLocalClose, onLinkLocalDetach, onLinkLocalOpen, onLinkRemoteClose, onLinkRemoteDetach, onLinkRemoteOpen, onReactorFinal, onReactorInit, onReactorQuiesced, onSelectableError, onSelectableExpired, onSelectableFinal, onSelectableInit, onSelectableReadable, onSelectableUpdated, onSelectableWritable, onSessionFinal, onSessionInit, onSessionLocalClose, onSessionLocalOpen, onSessionRemoteClose, onSessionRemoteOpen, onTimerTask, onTransportClosed, onTransportError, onTransportHeadClosed, onTransportTailClosed, onUnhandled, setHandler, setHandler
public Driver(Collector collector, Handler... handlers) throws IOException
IOException
public void listen(String host, int port) throws IOException
IOException
public void run() throws IOException
IOException
public void processEvents()
public void onTransport(Event evt)
onTransport
in interface CoreHandler
onTransport
in class BaseHandler
public void onConnectionLocalOpen(Event evt)
onConnectionLocalOpen
in interface CoreHandler
onConnectionLocalOpen
in class BaseHandler
Copyright © 2016 The Apache Software Foundation. All rights reserved.