AsyncEventListenerService
public abstract class EventListenerService extends Object implements IOEventFilter, IOEventListener
IOEventListener
and IOEventFilter
classes.Constructor and Description |
---|
EventListenerService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
Deprecated.
Starts this service.
|
void |
doStopService()
Deprecated.
Stops this service.
|
protected void |
startService()
Deprecated.
Starts the service running.
|
protected void |
stopService()
Deprecated.
Stops the service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptEvent
handleEvent
protected void startService()
Starts the service running. This will be called after the service has been placed into the naming hierarchy, and all of its properties have been set.
Override this method if you would like to do something when this service is started.
public final void doStartService()
startService()
, and then register this IOEventListener
on the EventManager
.protected void stopService()
Stops the service. This will be called when the Service is being shut down, either by explicit instructions from the administrator, or for various other reasons. A Service should clean up any resources it is using, but should be prepared to restart itself. When asked to restart, its properties may have changed.
Override this method if you would like to do something when this service is stoped.
public final void doStopService()
© 1998- 2018 Stibo DX