Package com.tibco.tibjms.admin
Class QueueInfo
- java.lang.Object
- 
- com.tibco.tibjms.admin.DestinationInfo
- 
- com.tibco.tibjms.admin.QueueInfo
 
 
- 
 public class QueueInfo extends DestinationInfo This class represents a message queue that is configured on the EMS server.
- 
- 
Field Summary- 
Fields inherited from class com.tibco.tibjms.admin.DestinationInfoALL_TYPE, DEST_GET_ALL, DEST_GET_DYNAMIC, DEST_GET_NOTEMP, DEST_GET_STATIC, MSG_TRACE_BASIC, MSG_TRACE_DETAIL, MSG_TRACE_NONE, OVERFLOW_DEFAULT, OVERFLOW_DISCARD_OLD, OVERFLOW_REJECT_INCOMING, PREFETCH_DEFAULT, PREFETCH_NONE, QUEUE_TYPE, TOPIC_TYPE
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueueInfofrom(javax.management.openmbean.CompositeData cd)For Internal use only, may be removed or deprecated in future.longgetDeliveredMessageCount()Get the total number of messages that have been delivered to consumer applications but have not yet been acknowledged.longgetInTransitMessageCount()Get the total number of messages that have been delivered to the queue owner but have not yet been acknowledged.intgetMaxRedelivery()Get the maximum number of times the server will redeliver a given message from this queue to the queue receivers.intgetReceiverCount()Get the number of active receivers on this queue.java.lang.StringgetRouteName()Get the name of this routed queue's routebooleanisExclusive()Determine if this queue is exclusive.booleanisExclusiveInherited()Determine if the exclusive property is inherited from a parent queue.booleanisMaxRedeliveryInherited()Determine if the maxRedelivery property was inheritied from a parent queue or set directly for this queue.booleanisRouteConnected()Determine if the route for this queue is connected.booleanisRouted()Determine if this is a routed queue or not.voidsetExclusive(boolean exclusive)Set the exclusive property for this queue.voidsetMaxRedelivery(int maxRedelivery)Set the maximum number of times the server will redeliver a given message from this queue to the queue receivers.java.lang.StringtoString()- 
Methods inherited from class com.tibco.tibjms.admin.DestinationInfoaddImportTransport, areBridgeTargetsInherited, areImportTransportsInherited, connectionID, getBridgeTargets, getConsumerCount, getDescription, getExpiryOverride, getFlowControlMaxBytes, getImportTransports, getInboundStatistics, getJNDINames, getMaxBytes, getMaxMsgs, getMsgTrace, getName, getOutboundStatistics, getOverflowPolicy, getPendingMessageCount, getPendingMessageSize, getPendingPersistentMessageCount, getPendingPersistentMessageSize, getPrefetch, getRedeliveryDelay, getStore, isBridgeTargetsInherited, isExpiryOverrideInherited, isFailsafe, isFailsafeInherited, isFlowControlMaxBytesInherited, isGlobal, isGlobalInherited, isImportTransportsInherited, isMaxBytesInherited, isMaxMsgsInherited, isMsgTraceInherited, isOverflowPolicyInherited, isPrefetchInherited, isRedeliveryDelayInherited, isSecure, isSecureInherited, isSenderName, isSenderNameEnforced, isSenderNameEnforcedInherited, isSenderNameInherited, isStatic, isStoreInherited, isTemporary, removeImportTransport, setDescription, setExpiryOverride, setFailsafe, setFlowControlMaxBytes, setGlobal, setMaxBytes, setMaxMsgs, setMsgTrace, setOverflowPolicy, setPrefetch, setRedeliveryDelay, setSecure, setSenderName, setSenderNameEnforced, setStore, statString
 
- 
 
- 
- 
- 
Constructor Detail- 
QueueInfopublic QueueInfo(java.lang.String queueName) The public constructor creates a QueueInfo object with the given name. The queue is not created on the server until the object is passed to TibjmsAdmin.createQueue().- Parameters:
- queueName- the name for the queue being created.
 
 - 
QueueInfopublic QueueInfo(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
- JMSException
 
 
- 
 - 
Method Detail- 
isExclusivepublic boolean isExclusive() Determine if this queue is exclusive.- Returns:
- true if this queue has the exclusive property set.
 
 - 
isExclusiveInheritedpublic boolean isExclusiveInherited() Determine if the exclusive property is inherited from a parent queue.- Returns:
- true if the exclusive property is inherited from a parent queue.
 
 - 
setExclusivepublic void setExclusive(boolean exclusive) Set the exclusive property for this queue.- Parameters:
- exclusive- true if this queue should be exclusive.
 
 - 
isRoutedpublic boolean isRouted() Determine if this is a routed queue or not.- Returns:
- true if the queue is routed.
- Since:
- EMS 4.4
 
 - 
getRouteNamepublic java.lang.String getRouteName() Get the name of this routed queue's route- Returns:
- the route name or null if the queue is not routed
- Since:
- EMS 4.4
 
 - 
isRouteConnectedpublic boolean isRouteConnected() Determine if the route for this queue is connected.- Returns:
- true if the route for this queue is connected.
 
 - 
getReceiverCountpublic int getReceiverCount() Get the number of active receivers on this queue.- Returns:
- the number of active receivers on this queue.
 
 - 
getMaxRedeliverypublic int getMaxRedelivery() Get the maximum number of times the server will redeliver a given message from this queue to the queue receivers.- Returns:
- the maximum number of times a message will be redelivered. A return value of zero indicates that the server will continue to deliver a message to the receivers until either the message is consumed or, if the message has a finite time to live, the message expires.
 
 - 
setMaxRedeliverypublic void setMaxRedelivery(int maxRedelivery) Set the maximum number of times the server will redeliver a given message from this queue to the queue receivers.- Parameters:
- maxRedelivery- the maximum number of times a message should be redelivered. Set the value to zero to cancel the current value.
 
 - 
isMaxRedeliveryInheritedpublic boolean isMaxRedeliveryInherited() Determine if the maxRedelivery property was inheritied from a parent queue or set directly for this queue.- Returns:
- true if the maxRedelivery property was inherited.
 
 - 
getDeliveredMessageCountpublic long getDeliveredMessageCount() Get the total number of messages that have been delivered to consumer applications but have not yet been acknowledged.- Returns:
- the total number of delivered messages for this queue.
 
 - 
getInTransitMessageCountpublic long getInTransitMessageCount() Get the total number of messages that have been delivered to the queue owner but have not yet been acknowledged.- Returns:
- the total number of in transit messages for this queue.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
frompublic static QueueInfo from(javax.management.openmbean.CompositeData cd) throws java.lang.Exception For Internal use only, may be removed or deprecated in future.- Returns:
- a QueueInfo object from CompositeData
- Throws:
- java.lang.IllegalArgumentException- if CompositeType does not match or if a null CompositeData is passed.
- java.lang.Exception
 
 
- 
 
-