AsyncEventListenerService
insteadpublic abstract class IOEventAdapter
extends neo.xredsys.api.services.AsyncEventListenerService
GenericService.StartCommand, GenericService.StopCommand
mLogger, state
Modifier | Constructor and Description |
---|---|
protected |
IOEventAdapter(boolean pLocalOnly)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(IOEvent pEvent)
Deprecated.
This method is called synchronously, so it is recommended that you only do initial filtering that are fast to execute in this method.
|
protected void |
handle(IOEvent event)
Deprecated.
Handles events by distributing different event types to different
methods
|
void |
objectAddedTo(IOEvent event)
Deprecated.
Called when a relation is created
|
void |
objectCreated(IOEvent event)
Deprecated.
Called when an object is created
|
void |
objectDeleted(IOEvent event)
Deprecated.
Called when an object is deleted
|
void |
objectLockBroken(IOEvent event)
Deprecated.
Called when an object has had its lock broken
|
void |
objectLocked(IOEvent event)
Deprecated.
Called when an object is locked
|
void |
objectLockTaken(IOEvent event)
Deprecated.
Called when an object has hat its lock broken, and taken by another
client
|
void |
objectModified(IOEvent event)
Deprecated.
Called when an object is modified
|
void |
objectRelationChanged(IOEvent event)
Deprecated.
Called when a relation is changed
|
void |
objectRemovedFrom(IOEvent event)
Deprecated.
Called when a relation is deleted
|
void |
objectStateChanged(IOEvent event)
Deprecated.
Called when an object has changed its state
|
void |
objectUnlocked(IOEvent event)
Deprecated.
Called when an object is unlocked
|
acceptEvent, getBacklog, getCollector, getEventManager, getService, handleEvent, isLocalOnly, setCollector, setEventManager, startEventListener, startService, stopEventListener, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public void objectCreated(IOEvent event) throws Exception
Exception
public void objectDeleted(IOEvent event) throws Exception
Exception
public void objectModified(IOEvent event) throws Exception
Exception
public void objectStateChanged(IOEvent event) throws Exception
Exception
public void objectAddedTo(IOEvent event) throws Exception
Exception
public void objectRemovedFrom(IOEvent event) throws Exception
Exception
public void objectRelationChanged(IOEvent event) throws Exception
Exception
public void objectLocked(IOEvent event) throws Exception
Exception
public void objectUnlocked(IOEvent event) throws Exception
Exception
public void objectLockBroken(IOEvent event) throws Exception
Exception
public void objectLockTaken(IOEvent event) throws Exception
Exception
protected boolean accept(IOEvent pEvent) throws Exception
neo.xredsys.api.services.AsyncEventListenerService
This method is called synchronously, so it is recommended that you only do initial filtering that are fast to execute in this method.
accept
in class neo.xredsys.api.services.AsyncEventListenerService
pEvent
- the event to accepttrue
if the event is to be accepted, false
otherwiseException
- when any unknown error happensprotected void handle(IOEvent event) throws Exception
handle
in class neo.xredsys.api.services.AsyncEventListenerService
event
- the eventException
- when any unknown error happens© 1998- 2018 Stibo DX