Package com.tibco.tibjms.admin
Class RVQueuePolicy
- java.lang.Object
- 
- com.tibco.tibjms.admin.RVQueuePolicy
 
- 
 public class RVQueuePolicy extends java.lang.ObjectThis 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, isTIBRVQUEUE_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 thanTIBRVQUEUE_DISCARD_NONEcauses excess TIBCO RV messages to be discarded, and therefore not imported by the TIBCO EMS Server, but help prevents unbound memory growth.- Since:
- EMS 5.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intTIBRVQUEUE_DISCARD_FIRSTDiscard the first event in the queue (that is, the oldest event in the queue, which would otherwise be the next event to dispatch).static intTIBRVQUEUE_DISCARD_LASTDiscard the last event in the queue (that is, the youngest event in the queue).static intTIBRVQUEUE_DISCARD_NONENever discard events; use this policy when a queue has no limit on the number of events it can contain.
 - 
Constructor SummaryConstructors Constructor Description RVQueuePolicy(java.lang.Object json)For Internal use only, may be removed or deprecated in future.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDiscardAmount()When the TIBCO RV queue exceeds its maximum message limit, discard a block of messages.intgetMaxEvents()The maximum number of messages that the TIBCO RV queue can hold before starting to discard messages.intgetPolicy()Returns the policy of this discard policy.java.lang.StringgetPolicyName()Returns a string representation of the discard policy.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
TIBRVQUEUE_DISCARD_NONEpublic static final int TIBRVQUEUE_DISCARD_NONE Never discard events; use this policy when a queue has no limit on the number of events it can contain.- See Also:
- Constant Field Values
 
 - 
TIBRVQUEUE_DISCARD_FIRSTpublic static final 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).- See Also:
- Constant Field Values
 
 - 
TIBRVQUEUE_DISCARD_LASTpublic static final int TIBRVQUEUE_DISCARD_LAST Discard the last event in the queue (that is, the youngest event in the queue).- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RVQueuePolicypublic RVQueuePolicy(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
- JMSException
 
 
- 
 - 
Method Detail- 
getPolicypublic int getPolicy() Returns the policy of this discard policy.- Returns:
- the policy of this discard policy
 
 - 
getPolicyNamepublic java.lang.String getPolicyName() Returns a string representation of the discard policy.- Returns:
- the name of the discard policy
 
 - 
getMaxEventspublic int getMaxEvents() The maximum number of messages that the TIBCO RV queue can hold before starting to discard messages.- Returns:
- the number of events (messages) that the RV Queue can hold, or 0 if policy is
         TIBRVQUEUE_DISCARD_NONE
 
 - 
getDiscardAmountpublic int getDiscardAmount() When the TIBCO RV queue exceeds its maximum message limit, discard a block of messages. This value is the number of messages to discard.- Returns:
- the number of messages to discard when the RV queue exceeds its maximum event limit, or 0 if policy is
         TIBRVQUEUE_DISCARD_NONE
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-