public final class DistributionQueueMBeanImpl extends Object implements DistributionQueueMBean
DistributionQueueMBean
Constructor and Description |
---|
DistributionQueueMBeanImpl(DistributionQueue distributionQueue) |
Modifier and Type | Method and Description |
---|---|
int |
getHeadDequeuingAttempts()
Get the first item (in a FIFO strategy, the next to be processed) dequeuing attempts from the queue.
|
Calendar |
getHeadEnqueuingDate()
Get the first item (in a FIFO strategy, the next to be processed) date time when joined the queue.
|
String |
getHeadId()
Get the first item ID (in a FIFO strategy, the next to be processed) from the queue.
|
String |
getHeadStatus()
Get the first item (in a FIFO strategy, the next to be processed) state.
|
String |
getName()
Get this queue name
|
int |
getSize()
Get the current size of the queue.
|
String |
getState()
Get the state associated with the status of this queue
|
String |
getType()
Get the type of this queue.
|
boolean |
isEmpty()
Check if the queue is empty
|
public DistributionQueueMBeanImpl(DistributionQueue distributionQueue)
public String getName()
DistributionQueueMBean
getName
in interface DistributionQueueMBean
public String getType()
DistributionQueueMBean
getType
in interface DistributionQueueMBean
public int getSize()
DistributionQueueMBean
getSize
in interface DistributionQueueMBean
public boolean isEmpty()
DistributionQueueMBean
isEmpty
in interface DistributionQueueMBean
true
if the queue is empty, false
otherwisepublic String getState()
DistributionQueueMBean
getState
in interface DistributionQueueMBean
public String getHeadId()
DistributionQueueMBean
getHeadId
in interface DistributionQueueMBean
null
if the queue is emptypublic int getHeadDequeuingAttempts()
DistributionQueueMBean
getHeadDequeuingAttempts
in interface DistributionQueueMBean
-1
if the queue is emptypublic String getHeadStatus()
DistributionQueueMBean
getHeadStatus
in interface DistributionQueueMBean
null
if the queue is emptypublic Calendar getHeadEnqueuingDate()
DistributionQueueMBean
getHeadEnqueuingDate
in interface DistributionQueueMBean
null
if the queue is emptyCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.