|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.messaging.routing.module.PriorityOrdererModule
public class PriorityOrdererModule
The module orderer the exchange according to their priority, proposing a
Priority Queue mechanism. It is possible to reassign a priority by using the
PriorityModifier Interface.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_ROUTER_PRIORITY
The priority property to set in message exchange. |
static long |
TIMEOUT_MANAGER_PERIOD
The period to run the Timeout Manager task |
| Constructor Summary | |
|---|---|
PriorityOrdererModule()
|
|
| Method Summary | |
|---|---|
void |
electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Elect a list of candidate endpoints to be destination of the exchange. |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
|
void |
modifyPriority(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
short priority)
|
protected void |
start()
Start the Fractal component |
protected void |
stop()
Stop the Fractal component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_ROUTER_PRIORITY
public static final long TIMEOUT_MANAGER_PERIOD
| Constructor Detail |
|---|
public PriorityOrdererModule()
| Method Detail |
|---|
public void electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
throws RoutingException
SenderModule
electEndpoints in interface SenderModuleexchangeDecorator - the exchange decorator to send
RoutingException
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListener
public void modifyPriority(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
short priority)
throws RoutingException
modifyPriority in interface PriorityModifierRoutingExceptionprotected void start()
RoutingExceptionprotected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||