|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Attribute controller for queue implementation with a push input. It defines an overflow policy attribute with three default values (specific implementations can define other).
Field Summary | |
static String |
BLOCK_OVERFLOW_POLICY
An overflow policy that block incoming messages until a message is delivered on the output. |
static String |
DROP_FIRST_OVERFLOW_POLICY
An overflow policy that drops the first message of the queue when it is full. |
static String |
DROP_LAST_OVERFLOW_POLICY
An overflow policy that drops the last message of the queue when it is full. |
static String |
DROP_PROCESSED_MESSAGE_OVERFLOW_POLICY
An overflow policy that drops the current message when the queue is full: this means that the message will not be inserted into the queue. |
static String |
DROP_QUEUE_MESSAGE_OVERFLOW_POLICY
An overflow policy that drops a message message from the queue when it is full. |
static String |
EXCEPTION_OVERFLOW_POLICY
An overflow policy that causes the Push server interface to
throw a BufferOverflowException |
Method Summary | |
String |
getOverflowPolicy()
Returns the overflow policy. |
void |
setOverflowPolicy(String policy)
Sets the overflow policy. |
Field Detail |
public static final String BLOCK_OVERFLOW_POLICY
InterruptedPushException
may be thrown.
public static final String DROP_QUEUE_MESSAGE_OVERFLOW_POLICY
public static final String DROP_FIRST_OVERFLOW_POLICY
public static final String DROP_LAST_OVERFLOW_POLICY
public static final String DROP_PROCESSED_MESSAGE_OVERFLOW_POLICY
public static final String EXCEPTION_OVERFLOW_POLICY
Push
server interface to
throw a BufferOverflowException
Method Detail |
public String getOverflowPolicy()
public void setOverflowPolicy(String policy)
policy
- the overflow policy.
IllegalArgumentException
- if the given string is not reconized as a
valid policy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |