|
TIBCO Enterprise Message Service | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tibco.tibjms.admin.RVQueuePolicy
public class RVQueuePolicy
This class represents the discard policy of the TIBCO Rendezvous queues used internally by the TIBCO EMS Server when
importing messages from TIBCO Rendezvous. Each transport uses a TIBCO RV queue, and therefore a discard policy can be
defined per transport. The default policy, if omitted, is TIBRVQUEUE_DISCARD_NONE
, which means that no
message is ever discarded.
Note that in a fast producer situation, this can lead to a rapid TIBCO EMS process memory growth since the
internal TIBCO RV queue may hold a lot of RV messages waiting to be processed as EMS messages.
Specifying a discard policy other than TIBRVQUEUE_DISCARD_NONE
causes excess TIBCO RV messages to be
discarded, and therefore not imported by the TIBCO EMS Server, but help prevents unbound memory growth.
Field Summary | |
---|---|
static int |
TIBRVQUEUE_DISCARD_FIRST
Discard the first event in the queue (that is, the oldest event in the queue, which would otherwise be the next event to dispatch). |
static int |
TIBRVQUEUE_DISCARD_LAST
Discard the last event in the queue (that is, the youngest event in the queue). |
static int |
TIBRVQUEUE_DISCARD_NONE
Never discard events; use this policy when a queue has no limit on the number of events it can contain. |
Method Summary | |
---|---|
int |
getDiscardAmount()
When the TIBCO RV queue exceeds its maximum message limit, discard a block of messages. |
int |
getMaxEvents()
The maximum number of messages that the TIBCO RV queue can hold before starting to discard messages. |
int |
getPolicy()
Returns the policy of this discard policy. |
java.lang.String |
getPolicyName()
Returns a string representation of the discard policy. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TIBRVQUEUE_DISCARD_NONE
public static final int TIBRVQUEUE_DISCARD_FIRST
public static final int TIBRVQUEUE_DISCARD_LAST
Method Detail |
---|
public int getPolicy()
public java.lang.String getPolicyName()
public int getMaxEvents()
TIBRVQUEUE_DISCARD_NONE
public int getDiscardAmount()
TIBRVQUEUE_DISCARD_NONE
public java.lang.String toString()
toString
in class java.lang.Object
|
TIBCO Enterprise Message Service | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |