public class MailQueueManagement extends StandardMBean implements MailQueueManagementMBean
ManageableMailQueue| Constructor and Description |
|---|
MailQueueManagement(ManageableMailQueue queue) |
| Modifier and Type | Method and Description |
|---|---|
List<CompositeData> |
browse()
Allow to browse the content of the queue
|
long |
clear()
Clear the queue
|
long |
flush()
Flush queue to make every Mail ready to consume.
|
long |
getSize()
Return the size of the queue or -1 if the size could not get calculated
|
long |
removeWithName(String name)
Remove mail with name from the queue
|
long |
removeWithRecipient(String address)
Remove mail with specific recipient from the queue
|
long |
removeWithSender(String address)
Remove mail with specific sender from the queue
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic MailQueueManagement(ManageableMailQueue queue) throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic long clear()
throws Exception
MailQueueManagementMBeanclear in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.clear()public long flush()
throws Exception
MailQueueManagementMBeanflush in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.flush()public long getSize()
throws Exception
MailQueueManagementMBeangetSize in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.getSize()public long removeWithName(String name) throws Exception
MailQueueManagementMBeanremoveWithName in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.removeWithName(java.lang.String)public long removeWithRecipient(String address) throws Exception
MailQueueManagementMBeanremoveWithRecipient in interface MailQueueManagementMBeanException(java.lang.String)public long removeWithSender(String address) throws Exception
MailQueueManagementMBeanremoveWithSender in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.removeWithSender(java.lang.String)public List<CompositeData> browse() throws Exception
MailQueueManagementMBeanbrowse in interface MailQueueManagementMBeanExceptionMailQueueManagementMBean.browse()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.