Class NotificationActiveMQServerPlugin
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.plugin.impl.NotificationActiveMQServerPlugin
-
- All Implemented Interfaces:
ActiveMQServerAddressPlugin,ActiveMQServerBasePlugin,ActiveMQServerBindingPlugin,ActiveMQServerBridgePlugin,ActiveMQServerConnectionPlugin,ActiveMQServerConsumerPlugin,ActiveMQServerCriticalPlugin,ActiveMQServerFederationPlugin,ActiveMQServerMessagePlugin,ActiveMQServerPlugin,ActiveMQServerQueuePlugin,ActiveMQServerResourcePlugin,ActiveMQServerSessionPlugin
public class NotificationActiveMQServerPlugin extends Object implements ActiveMQServerPlugin
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEND_ADDRESS_NOTIFICATIONSstatic StringSEND_CONNECTION_NOTIFICATIONSstatic StringSEND_DELIVERED_NOTIFICATIONSstatic StringSEND_EXPIRED_NOTIFICATIONS
-
Constructor Summary
Constructors Constructor Description NotificationActiveMQServerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAddAddress(AddressInfo addressInfo, boolean reload)After an address has been added tot he brokervoidafterCreateConnection(RemotingConnection connection)A connection has been created.voidafterDeliver(ServerConsumer consumer, MessageReference reference)After a message is delivered to a client consumervoidafterDestroyConnection(RemotingConnection connection)A connection has been destroyed.voidafterRemoveAddress(SimpleString address, AddressInfo addressInfo)After an address has been removedvoidinit(Map<String,String> properties)used to pass configured properties to PluginbooleanisSendAddressNotifications()booleanisSendConnectionNotifications()booleanisSendDeliveredNotifications()booleanisSendExpiredNotifications()voidmessageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer)A message has been expiredvoidregistered(ActiveMQServer server)The plugin has been registered with the servervoidsetSendAddressNotifications(boolean sendAddressNotifications)voidsetSendConnectionNotifications(boolean sendConnectionNotifications)voidsetSendDeliveredNotifications(boolean sendDeliveredNotifications)voidsetSendExpiredNotifications(boolean sendExpiredNotifications)voidunregistered(ActiveMQServer server)The plugin has been unregistered with the server-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerAddressPlugin
afterUpdateAddress, beforeAddAddress, beforeRemoveAddress, beforeUpdateAddress
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBindingPlugin
afterAddBinding, afterRemoveBinding, beforeAddBinding, beforeRemoveBinding
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBridgePlugin
afterAcknowledgeBridge, afterDeliverBridge, afterDeployBridge, beforeDeliverBridge, beforeDeployBridge
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerConsumerPlugin
afterCloseConsumer, afterCreateConsumer, beforeCloseConsumer, beforeCreateConsumer, beforeCreateConsumer
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerCriticalPlugin
criticalFailure
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerFederationPlugin
afterCloseFederatedQueueConsumer, afterCreateFederatedQueueConsumer, afterFederatedQueueConsumerMessageHandled, beforeCloseFederatedQueueConsumer, beforeCreateFederatedQueueConsumer, beforeFederatedQueueConsumerMessageHandled, federatedAddressConditionalCreateConsumer, federatedAddressConditionalCreateDivertConsumer, federatedQueueConditionalCreateConsumer, federationStreamStarted, federationStreamStopped
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerMessagePlugin
afterDeliver, afterMessageRoute, afterSend, afterSend, beforeDeliver, beforeDeliver, beforeMessageRoute, beforeSend, beforeSend, canAccept, messageAcknowledged, messageAcknowledged, messageAcknowledged, messageExpired, onMessageRouteException, onSendException
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerQueuePlugin
afterCreateQueue, afterDestroyQueue, afterExpiryScan, beforeCreateQueue, beforeCreateQueue, beforeDestroyQueue, beforeDestroyQueue, beforeExpiryScan
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerResourcePlugin
afterPutTransaction, afterRemoveTransaction, beforePutTransaction, beforeRemoveTransaction
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerSessionPlugin
afterCloseSession, afterCreateSession, afterSessionMetadataAdded, beforeCloseSession, beforeCreateSession, beforeSessionMetadataAdded, duplicateSessionMetadataFailure
-
-
-
-
Field Detail
-
SEND_CONNECTION_NOTIFICATIONS
public static final String SEND_CONNECTION_NOTIFICATIONS
- See Also:
- Constant Field Values
-
SEND_ADDRESS_NOTIFICATIONS
public static final String SEND_ADDRESS_NOTIFICATIONS
- See Also:
- Constant Field Values
-
SEND_DELIVERED_NOTIFICATIONS
public static final String SEND_DELIVERED_NOTIFICATIONS
- See Also:
- Constant Field Values
-
SEND_EXPIRED_NOTIFICATIONS
public static final String SEND_EXPIRED_NOTIFICATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Map<String,String> properties)
used to pass configured properties to Plugin- Specified by:
initin interfaceActiveMQServerBasePlugin- Parameters:
properties-
-
registered
public void registered(ActiveMQServer server)
Description copied from interface:ActiveMQServerBasePluginThe plugin has been registered with the server- Specified by:
registeredin interfaceActiveMQServerBasePlugin- Parameters:
server- The ActiveMQServer the plugin has been registered to
-
unregistered
public void unregistered(ActiveMQServer server)
Description copied from interface:ActiveMQServerBasePluginThe plugin has been unregistered with the server- Specified by:
unregisteredin interfaceActiveMQServerBasePlugin- Parameters:
server- The ActiveMQServer the plugin has been unregistered to
-
afterCreateConnection
public void afterCreateConnection(RemotingConnection connection) throws ActiveMQException
Description copied from interface:ActiveMQServerConnectionPluginA connection has been created.- Specified by:
afterCreateConnectionin interfaceActiveMQServerConnectionPlugin- Parameters:
connection- The newly created connection- Throws:
ActiveMQException
-
afterDestroyConnection
public void afterDestroyConnection(RemotingConnection connection) throws ActiveMQException
Description copied from interface:ActiveMQServerConnectionPluginA connection has been destroyed.- Specified by:
afterDestroyConnectionin interfaceActiveMQServerConnectionPlugin- Throws:
ActiveMQException
-
afterAddAddress
public void afterAddAddress(AddressInfo addressInfo, boolean reload) throws ActiveMQException
Description copied from interface:ActiveMQServerAddressPluginAfter an address has been added tot he broker- Specified by:
afterAddAddressin interfaceActiveMQServerAddressPlugin- Parameters:
addressInfo- The newly added addressreload- If the address is being reloaded- Throws:
ActiveMQException
-
afterRemoveAddress
public void afterRemoveAddress(SimpleString address, AddressInfo addressInfo) throws ActiveMQException
Description copied from interface:ActiveMQServerAddressPluginAfter an address has been removed- Specified by:
afterRemoveAddressin interfaceActiveMQServerAddressPlugin- Parameters:
address- The address that has been removedaddressInfo- The address info that has been removed or null if not removed- Throws:
ActiveMQException
-
afterDeliver
public void afterDeliver(ServerConsumer consumer, MessageReference reference) throws ActiveMQException
Description copied from interface:ActiveMQServerMessagePluginAfter a message is delivered to a client consumer- Specified by:
afterDeliverin interfaceActiveMQServerMessagePlugin- Parameters:
consumer- the consumer the message was delivered toreference- message reference- Throws:
ActiveMQException
-
messageExpired
public void messageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer)
Description copied from interface:ActiveMQServerMessagePluginA message has been expired- Specified by:
messageExpiredin interfaceActiveMQServerMessagePlugin- Parameters:
message- The expired messagemessageExpiryAddress- The message expiry address if existsconsumer- the Consumer that acknowledged the message - this field is optional and can be null
-
isSendConnectionNotifications
public boolean isSendConnectionNotifications()
- Returns:
- the sendConnectionNotifications
-
setSendConnectionNotifications
public void setSendConnectionNotifications(boolean sendConnectionNotifications)
- Parameters:
sendConnectionNotifications- the sendConnectionNotifications to set
-
isSendDeliveredNotifications
public boolean isSendDeliveredNotifications()
- Returns:
- the sendDeliveredNotifications
-
setSendDeliveredNotifications
public void setSendDeliveredNotifications(boolean sendDeliveredNotifications)
- Parameters:
sendDeliveredNotifications- the sendDeliveredNotifications to set
-
isSendExpiredNotifications
public boolean isSendExpiredNotifications()
- Returns:
- the sendExpiredNotifications
-
setSendExpiredNotifications
public void setSendExpiredNotifications(boolean sendExpiredNotifications)
- Parameters:
sendExpiredNotifications- the sendExpiredNotifications to set
-
isSendAddressNotifications
public boolean isSendAddressNotifications()
- Returns:
- the sendAddressNotifications
-
setSendAddressNotifications
public void setSendAddressNotifications(boolean sendAddressNotifications)
- Parameters:
sendAddressNotifications- the sendAddressNotifications to set
-
-