public class ReplayQueueEventProxy extends java.lang.Object implements QueueEventProxy, QueueListener
| Constructor and Description |
|---|
ReplayQueueEventProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueueListener(QueueListener listener)
Add a
QueueListener that will be notified on events
relative to the observed QueueService. |
void |
enlisted(JobInfo info)
Invoked when a job is just being enlisted (before processing).
|
void |
executed(JobInfo info,
java.lang.Object result)
Invoked when a job's execution is finished successfully.
|
void |
failed(JobInfo info,
java.lang.Throwable throwable)
Invoked when a job's execution is finished with error.
|
void |
removeQueueListener(QueueListener listener)
Remove a
QueueListener from the observed QueueService. |
void |
started(JobInfo info)
Invoked when a job's execution is just about to be started.
|
public void addQueueListener(QueueListener listener)
QueueEventProxyQueueListener that will be notified on events
relative to the observed QueueService.addQueueListener in interface QueueEventProxylistener - added listenerpublic void removeQueueListener(QueueListener listener)
QueueEventProxyQueueListener from the observed QueueService.removeQueueListener in interface QueueEventProxylistener - removed listenerpublic void enlisted(JobInfo info)
QueueListenerJobInfo.getEnlistmentTime() and JobInfo.getWaitDuration() provides meaningful values.
Note that waitDuration value is re-evaluated at each call.enlisted in interface QueueListenerinfo - The job being enlistedpublic void started(JobInfo info)
QueueListenerJobInfo.getEnlistmentTime(), JobInfo.getWaitDuration(), JobInfo.getStartTime()
and JobInfo.getExecutionDuration() provides meaningful values.
Note that executionDuration value is re-evaluated at each call.started in interface QueueListenerinfo - The job being startedpublic void executed(JobInfo info, java.lang.Object result)
QueueListenerresult (memory leak).executed in interface QueueListenerinfo - The executed jobresult - The job's resultpublic void failed(JobInfo info, java.lang.Throwable throwable)
QueueListenerthrowable (memory leak).failed in interface QueueListenerinfo - The failed jobthrowable - The job's thrown exceptionCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.