org.apache.sling.event
Interface EventUtil.JobStatusNotifier
- Enclosing class:
- EventUtil
- public static interface EventUtil.JobStatusNotifier 
This is a private interface which is only public for import reasons.
 
 
| Method Summary | 
|  boolean | finishedJob(org.osgi.service.event.Event job,
            java.lang.String eventNodePath,
            boolean reschedule)Notify that the job is finished.
 | 
|  boolean | sendAcknowledge(org.osgi.service.event.Event job,
                java.lang.String eventNodePath)Send an acknowledge message that someone is processing the job.
 | 
 
CONTEXT_PROPERTY_NAME
static final java.lang.String CONTEXT_PROPERTY_NAME
sendAcknowledge
boolean sendAcknowledge(org.osgi.service.event.Event job,
                        java.lang.String eventNodePath)
- Send an acknowledge message that someone is processing the job.
 
- 
- Parameters:
- job- The job.
- eventNodePath- The storage node in the repository.
- Returns:
- trueif the ack is ok,- falseotherwise (e.g. if
   someone else already send an ack for this job.
 
finishedJob
boolean finishedJob(org.osgi.service.event.Event job,
                    java.lang.String eventNodePath,
                    boolean reschedule)
- Notify that the job is finished.
 If the job is not rescheduled, a return value of falseindicates an error
 during the processing. If the job should be rescheduled,trueindicates
 that the job could be rescheduled. If an error occurs or the number of retries is
 exceeded,falsewill be returned.
 
- 
- Parameters:
- job- The job.
- eventNodePath- The storage node in the repository.
- reschedule- Should the event be rescheduled?
- Returns:
- trueif everything went fine,- falseotherwise.
 
Copyright © 2007-2009. All Rights Reserved.