|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedQueue
The management interface exposed to allow management of a queue.
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Method Summary | |
---|---|
void |
clearQueue()
Clears the queue by deleting all the undelivered messages from the queue. |
void |
deleteMessageFromTop()
Deletes the first message from top. |
java.lang.Integer |
getActiveConsumerCount()
Returns the total number of active subscribers to the queue. |
java.lang.Integer |
getConsumerCount()
Returns the total number of subscribers to the queue. |
java.lang.Integer |
getMaximumMessageCount()
Tells the maximum number of messages that can be stored in the queue. |
java.lang.Long |
getMaximumMessageSize()
Returns the maximum size of a message (in kbytes) allowed to be accepted by the ManagedQueue. |
java.lang.Integer |
getMessageCount()
Total number of messages on the queue, which are yet to be delivered to the consumer(s). |
java.lang.String |
getName()
Returns the Name of the ManagedQueue. |
java.lang.String |
getOwner()
Tells the Owner of the ManagedQueue. |
java.lang.Long |
getQueueDepth()
Tells the maximum size of all the messages combined together, that can be stored in the queue. |
java.lang.Long |
getQueueSize()
Size of messages in the queue |
java.lang.Long |
getReceivedMessageCount()
Tells the total number of messages receieved by the queue since startup. |
boolean |
isAutoDelete()
Tells if the ManagedQueue is set to AutoDelete. |
boolean |
isDurable()
Tells whether this ManagedQueue is durable or not. |
void |
setMaximumMessageCount(java.lang.Integer value)
Sets the maximum number of messages allowed to be stored in the queue. |
void |
setMaximumMessageSize(java.lang.Long size)
Sets the maximum size of the message (in kbytes) that is allowed to be accepted by the Queue. |
void |
setQueueDepth(java.lang.Long value)
Sets the maximum size of all the messages together, that can be stored in the queue. |
javax.management.openmbean.CompositeData |
viewMessageContent(long messageId)
|
javax.management.openmbean.TabularData |
viewMessages(int fromIndex,
int toIndex)
Returns a subset of all the messages stored in the queue. |
Field Detail |
---|
static final java.lang.String TYPE
Method Detail |
---|
java.lang.String getName() throws java.io.IOException
java.io.IOException
boolean isDurable() throws java.io.IOException
java.io.IOException
java.lang.String getOwner() throws java.io.IOException
java.io.IOException
boolean isAutoDelete() throws java.io.IOException
java.io.IOException
java.lang.Integer getMessageCount() throws java.io.IOException
java.io.IOException
java.lang.Long getMaximumMessageSize() throws java.io.IOException
java.io.IOException
void setMaximumMessageSize(java.lang.Long size) throws java.io.IOException
size
- maximum size of message.
java.io.IOException
java.lang.Integer getConsumerCount() throws java.io.IOException
java.io.IOException
java.lang.Integer getActiveConsumerCount() throws java.io.IOException
java.io.IOException
java.lang.Long getReceivedMessageCount() throws java.io.IOException
java.io.IOException
java.lang.Integer getMaximumMessageCount() throws java.io.IOException
java.io.IOException
void setMaximumMessageCount(java.lang.Integer value) throws java.io.IOException
value
- the maximum number of messages allowed to be stored in the queue.
java.io.IOException
java.lang.Long getQueueSize() throws java.io.IOException
java.io.IOException
java.lang.Long getQueueDepth() throws java.io.IOException
java.io.IOException
void setQueueDepth(java.lang.Long value) throws java.io.IOException
value
-
java.io.IOException
javax.management.openmbean.TabularData viewMessages(int fromIndex, int toIndex) throws java.io.IOException, javax.management.JMException
fromIndex
- toIndex
-
java.io.IOException
javax.management.JMException
void deleteMessageFromTop() throws java.io.IOException, javax.management.JMException
java.io.IOException
javax.management.JMException
void clearQueue() throws java.io.IOException, javax.management.JMException
java.io.IOException
javax.management.JMException
javax.management.openmbean.CompositeData viewMessageContent(long messageId) throws java.io.IOException, javax.management.JMException
java.io.IOException
javax.management.JMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |