|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventActionHandler
An interface to be implemented as a Java event action handler and
set as an event action in a
Subscription
object.
If any subscribed events are triggered on the target object
set in the subscription, then the handler executes.
An EventActionHandler
implementation runs on the server.
When implementing an event action handler, consider the following points:
For an asynchronous event action handler, an exception will be logged to the server,
and the asynchronous action will remain in the QueueItem
and retried as often as set in the RetryCount property.
Save
method on the source object of the event,
as long as there is no infinite loop to waste system resources. In synchronous event action handlers,
you cannot call the Save
method on the source object of the event.CodeModule
object in a Content Engine object store,
or you can specify the action handler in the classpath of the application server where the Content Engine is running.
See Deploying Action Handlers for more information.For restrictions and best practices on implementing action handlers, see Implementation Concepts.
Method Summary | |
---|---|
void |
onEvent(ObjectChangeEvent event,
Id subscriptionId)
Invoked when a subscribed event occurs on a target object set in a subscription. |
Method Detail |
---|
void onEvent(ObjectChangeEvent event, Id subscriptionId) throws EngineRuntimeException
event
- An event of type ObjectChangeEvent or subclass.subscriptionId
- An Id value that represents the GUID of the subscription that defines the triggered event.
You can use this value to retrieve the Subscription object with which this handler is associated.
EngineRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |