|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bss.esb.redelivery.RedeliveryScheduler
This is a Singleton class that performs the scheduling of the
RedeliveryTask
s using a single Timer
instance.
At the one time initialization, it browses the ESB's configured
redelivery queue to look for any pending messages. Based on the redelivery
properties of each message, it schedules a RedeliveryTask
instance.
After the startup clients can use this class for scheduling new
RedeliveryTask
s.
RedeliveryTask
Method Summary | |
static RedeliveryScheduler |
getInstance()
Returns the singleton instance of this class. |
void |
resetRedeliveryScheduler()
It first cancels the Timer instance associated
with this RedeliveryScheduler instance, then assigns a new instance
of the Timer to the member. |
void |
scheduleMessageForDelivery(long deliveryTime)
|
void |
stopRedeliveryScheduler()
Stops the Timer instance associated with this
RedeliveryScheduler instance. |
void |
unregisterMBean(javax.naming.InitialContext ic)
Unregisters the RedeliverySchedulerMonitorMBean instance associated with this RedeliveryScheduler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RedeliveryScheduler getInstance() throws java.lang.Exception
java.lang.Exception
public void scheduleMessageForDelivery(long deliveryTime) throws RedeliverySchedulingException
RedeliverySchedulingException
public void unregisterMBean(javax.naming.InitialContext ic)
ic
- The JNDI initial naming context.public void stopRedeliveryScheduler()
Timer
instance associated with this
RedeliveryScheduler instance.
public void resetRedeliveryScheduler()
Timer
instance associated
with this RedeliveryScheduler instance, then assigns a new instance
of the Timer
to the member.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |