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, setImplementation
public MailQueueManagement(ManageableMailQueue queue) throws NotCompliantMBeanException
NotCompliantMBeanException
public long clear() throws Exception
MailQueueManagementMBean
clear
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.clear()
public long flush() throws Exception
MailQueueManagementMBean
flush
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.flush()
public long getSize() throws Exception
MailQueueManagementMBean
getSize
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.getSize()
public long removeWithName(String name) throws Exception
MailQueueManagementMBean
removeWithName
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.removeWithName(java.lang.String)
public long removeWithRecipient(String address) throws Exception
MailQueueManagementMBean
removeWithRecipient
in interface MailQueueManagementMBean
Exception
(java.lang.String)
public long removeWithSender(String address) throws Exception
MailQueueManagementMBean
removeWithSender
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.removeWithSender(java.lang.String)
public List<CompositeData> browse() throws Exception
MailQueueManagementMBean
browse
in interface MailQueueManagementMBean
Exception
MailQueueManagementMBean.browse()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.