Package com.tibco.tibjms.admin
Class ConsumerInfo.Details
- java.lang.Object
- 
- com.tibco.tibjms.admin.ConsumerInfo.Details
 
- 
- Enclosing class:
- ConsumerInfo
 
 public static class ConsumerInfo.Details extends java.lang.ObjectProvides additional information about consumer.- Since:
- EMS 4.4
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConsumerInfo.Detailsfrom(javax.management.openmbean.CompositeData cd)longgetCurrentMsgCountSentByServer()Returns number of messages sent to consumer and not yet acknowledged by consumer's session.longgetCurrentMsgSizeSentByServer()Returns combined size of messages sent to consumer and not yet acknowledged by consumer's session.intgetDestinationPrefetch()Returns destination prefetch value.longgetElapsedSinceLastAcknowledged()Returns number of milliseconds elapsed since last time a message sent to this consumer was acknowledged by consumer's session.longgetElapsedSinceLastSent()Returns number of milliseconds elapsed since last time the server sent a message to this consumer.intgetPrefetchDelivered()Returns number of prefetch messages delivered to consumer by the server.java.lang.StringgetRouteName()Returns queue owner server name if this consumer's destination is a routed queue.intgetSessionAcknowledgeMode()Returns consumer's session acknowledge mode as a constant defined inTibjmsAdmin.longgetTotalAcknowledgedCount()Returns total number of messages which were delivered to this consumer and have been acknowledged by consumer's session.longgetTotalMsgCountSentByServer()Returns total number of messages the server sent to this consumer since consumer was created.booleanisActive()Returnstrueif this consumer is active.booleanisSystem()Returnstrueif this consumer has been created automatically by the system.java.lang.StringtoString()Returns string representation of this object.
 
- 
- 
- 
Method Detail- 
getRouteNamepublic java.lang.String getRouteName() Returns queue owner server name if this consumer's destination is a routed queue. Returnsnullfor topic consumers and for queue consumers receiving messages from queues local to the server.- Returns:
- queue owner server name or null
 
 - 
getDestinationPrefetchpublic int getDestinationPrefetch() Returns destination prefetch value. This returns actual destination prefetch value used by the server at run time. Return value is a positive prefetch value orDestinationInfo.PREFETCH_NONEwhich is available for queues.- Returns:
- destination prefetch value as positive value
 or DestinationInfo.PREFETCH_NONEfor queues configured as no-prefetch queue.
 
 - 
getPrefetchDeliveredpublic int getPrefetchDelivered() Returns number of prefetch messages delivered to consumer by the server. This value should be ignored for consumers on no-prefetch queues. For consumers receiving messages on any destination with positive prefetch value, this value is never more than the prefetch value of the destination. While normally this value cannot be used to identify the status of the consumer, it can be used in conjunction with other consumer information values to identify consumers who stopped receiving messages due to application-specific problems.- Returns:
- number of messages delivered to consumer within prefetch window.
 
 - 
getCurrentMsgCountSentByServerpublic long getCurrentMsgCountSentByServer() Returns number of messages sent to consumer and not yet acknowledged by consumer's session. For topic consumers this number is included into the number of pending messages returned byConsumerInfo.getPendingMessageCount().- Returns:
- number of sent messages, possibly 0.
 
 - 
getCurrentMsgSizeSentByServerpublic long getCurrentMsgSizeSentByServer() Returns combined size of messages sent to consumer and not yet acknowledged by consumer's session. For topic consumers this size is included into the combined size of pending messages returned byConsumerInfo.getPendingMessageSize().- Returns:
- combined size of sent messages, possibly 0.
 
 - 
getElapsedSinceLastSentpublic long getElapsedSinceLastSent() Returns number of milliseconds elapsed since last time the server sent a message to this consumer. This value, while returned in milliseconds, has a precision of 1 second. It should be used for informational purposes only.- Returns:
- approximate number of milliseconds elapsed since last time the server sent a message to this consumer.
 
 - 
getElapsedSinceLastAcknowledgedpublic long getElapsedSinceLastAcknowledged() Returns number of milliseconds elapsed since last time a message sent to this consumer was acknowledged by consumer's session. This value, while returned in milliseconds, has a precision of 1 second. This value should be used for informational purposes only. It can be used, for example, to identify consumers which receive messages but do not acknowledge them for some reason, etc.- Returns:
- approximate number of milliseconds elapsed since last time a message delivered to this consumer has been acknowledged by consumer's session.
 
 - 
getTotalMsgCountSentByServerpublic long getTotalMsgCountSentByServer() Returns total number of messages the server sent to this consumer since consumer was created. This value includes resends of the same message due to consumer's session recover or rollback. This value does not represent true number of unique messages received by this consumer and should be used only for statistical and informational purposes.- Returns:
- number of messages sent by server to this consumer since consumer was created, including resends.
 
 - 
getTotalAcknowledgedCountpublic long getTotalAcknowledgedCount() Returns total number of messages which were delivered to this consumer and have been acknowledged by consumer's session. This value should be used for informational purposes only.- Returns:
- total number of acknowledged messages which were received via this consumer.
 
 - 
isSystempublic boolean isSystem() Returnstrueif this consumer has been created automatically by the system. If this method returnsfalse, this consumer has been created by user application. If this method returnstruethis consumer has been created automatically by the system. There are several types of consumers the system may create automatically.- Returns:
- trueif this consumer has been created by EMS server and not by application.
 
 - 
isActivepublic boolean isActive() Returnstrueif this consumer is active. Active are consumers which the server can send messages to. Only queue consumers which never calledreceive()remain in inactive state. Queue consumers which calledreceiveat least once or are configured with the message callback, and all topic consumers are always active. This method can identify inactive queue consumers which never calledreceiveand, while present, never receive any messages from the server even in presence of pending messages in corresponding queue.- Returns:
- falseif this is a queue consumer which is not configured with the message callback and never called receive(). Returns- truein all other cases.
 
 - 
getSessionAcknowledgeModepublic int getSessionAcknowledgeMode() Returns consumer's session acknowledge mode as a constant defined inTibjmsAdmin.This method returns consumer's session acknowledge mode as a value defined in TibjmsAdminclass. Returned value isTibjmsAdmin.SESSION_UNKNOWN_ACKNOWLEDGEif consumer is currently not connected (for durable topic subscribers),TibjmsAdmin.SESSION_XAif consumer's session is XA session,TibjmsAdmin.SESSION_TRANSACTEDif consumer's session is transacted, or one of valuesTibjmsAdmin.SESSION_NO_ACKNOWLEDGE,TibjmsAdmin.SESSION_AUTO_ACKNOWLEDGE,TibjmsAdmin.SESSION_DUPS_OK_ACKNOWLEDGE,TibjmsAdmin.SESSION_CLIENT_ACKNOWLEDGE.- Returns:
- consumer's session acknowledge mode
 
 - 
toStringpublic java.lang.String toString() Returns string representation of this object.- Overrides:
- toStringin class- java.lang.Object
 
 - 
frompublic static ConsumerInfo.Details from(javax.management.openmbean.CompositeData cd) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 
- 
 
-