Interface ConsumerInfo
-
- All Known Subinterfaces:
ServerConsumer
- All Known Implementing Classes:
ServerConsumerImpl
public interface ConsumerInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConnectionClientID()StringgetConnectionLocalAddress()Returns a string representation of the local address this connection is connected to.StringgetConnectionProtocolName()Returns the name of the protocol for this Remoting ConnectionStringgetConnectionRemoteAddress()Returns a string representation of the remote address this connection is connected to.SimpleStringgetFilterString()longgetLastAcknowledgedTime()Returns the time in milliseconds that the last message was acknowledged by a consumerlonggetLastDeliveredTime()Returns the time in milliseconds that the last message was delivered to a consumerlonggetMessagesAcknowledged()Returns the number of messages acknowledged by this consumer since it was createdintgetMessagesAcknowledgedAwaitingCommit()Returns the number of acknowledged messages that are awaiting commit in a transactionlonggetMessagesDelivered()Returns The total number of messages sent to a consumer including redeliveries that have been acknowledgedlonggetMessagesDeliveredSize()Returns the total size of all the messages delivered to the consumer.intgetMessagesInTransit()Returns how many messages are out for delivery but not yet acknowledgedlonggetMessagesInTransitSize()Returns the combined size of all the messages out for delivery but not yet acknowledgedSimpleStringgetQueueAddress()SimpleStringgetQueueName()RoutingTypegetQueueType()longgetSequentialID()an unique sequential ID for this consumerStringgetSessionName()
-
-
-
Method Detail
-
getSequentialID
long getSequentialID()
an unique sequential ID for this consumer
-
getQueueName
SimpleString getQueueName()
- Returns:
- name of the queue that is being consumed
-
getQueueType
RoutingType getQueueType()
- Returns:
- routing type of the queue that is being consumed
-
getQueueAddress
SimpleString getQueueAddress()
- Returns:
- address of the queue that is being consumed
-
getFilterString
SimpleString getFilterString()
-
getSessionName
String getSessionName()
-
getConnectionClientID
String getConnectionClientID()
-
getConnectionProtocolName
String getConnectionProtocolName()
Returns the name of the protocol for this Remoting Connection- Returns:
- the name of protocol
-
getConnectionLocalAddress
String getConnectionLocalAddress()
Returns a string representation of the local address this connection is connected to. This is useful when the server is configured at 0.0.0.0 (or multiple IPs). This will give you the actual IP that's being used.- Returns:
- the local address
-
getConnectionRemoteAddress
String getConnectionRemoteAddress()
Returns a string representation of the remote address this connection is connected to.- Returns:
- the remote address
-
getMessagesInTransit
int getMessagesInTransit()
Returns how many messages are out for delivery but not yet acknowledged- Returns:
- delivering count
-
getMessagesInTransitSize
long getMessagesInTransitSize()
Returns the combined size of all the messages out for delivery but not yet acknowledged- Returns:
- the total size of all the messages
-
getMessagesDelivered
long getMessagesDelivered()
Returns The total number of messages sent to a consumer including redeliveries that have been acknowledged- Returns:
- the total number of messages delivered.
-
getMessagesDeliveredSize
long getMessagesDeliveredSize()
Returns the total size of all the messages delivered to the consumer. This includes redelivered messages- Returns:
- The total size of all the messages
-
getMessagesAcknowledged
long getMessagesAcknowledged()
Returns the number of messages acknowledged by this consumer since it was created- Returns:
- messages acknowledged
-
getMessagesAcknowledgedAwaitingCommit
int getMessagesAcknowledgedAwaitingCommit()
Returns the number of acknowledged messages that are awaiting commit in a transaction- Returns:
- th eno acknowledgements awaiting commit
-
getLastDeliveredTime
long getLastDeliveredTime()
Returns the time in milliseconds that the last message was delivered to a consumer- Returns:
- the time of the last message delivered
-
getLastAcknowledgedTime
long getLastAcknowledgedTime()
Returns the time in milliseconds that the last message was acknowledged by a consumer- Returns:
- the time of the last message was acknowledged
-
-