public interface JobStatusNotifier
Modifier and Type | Interface and Description |
---|---|
static class |
JobStatusNotifier.NotifierContext |
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PROPERTY_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
finishedJob(org.osgi.service.event.Event job,
boolean reschedule)
Notify that the job is finished.
|
boolean |
sendAcknowledge(org.osgi.service.event.Event job)
Send an acknowledge message that someone is processing the job.
|
static final String CONTEXT_PROPERTY_NAME
boolean sendAcknowledge(org.osgi.service.event.Event job)
job
- The job.true
if the ack is ok, false
otherwise (e.g. if
someone else already send an ack for this job.boolean finishedJob(org.osgi.service.event.Event job, boolean reschedule)
false
indicates an error
during the processing. If the job should be rescheduled, true
indicates
that the job could be rescheduled. If an error occurs or the number of retries is
exceeded, false
will be returned.job
- The job.reschedule
- Should the event be rescheduled?true
if everything went fine, false
otherwise.Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.