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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAddAddress(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 removedvoidused to pass configured properties to PluginbooleanbooleanbooleanbooleanvoidmessageExpired(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 serverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerAddressPlugin
afterUpdateAddress, beforeAddAddress, beforeRemoveAddress, beforeUpdateAddressMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
setInitMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBindingPlugin
afterAddBinding, afterRemoveBinding, beforeAddBinding, beforeRemoveBindingMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBridgePlugin
afterAcknowledgeBridge, afterDeliverBridge, afterDeployBridge, beforeDeliverBridge, beforeDeployBridgeMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerConsumerPlugin
afterCloseConsumer, afterCreateConsumer, beforeCloseConsumer, beforeCreateConsumer, beforeCreateConsumerMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerCriticalPlugin
criticalFailureMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerFederationPlugin
afterCloseFederatedQueueConsumer, afterCreateFederatedQueueConsumer, afterFederatedQueueConsumerMessageHandled, beforeCloseFederatedQueueConsumer, beforeCreateFederatedQueueConsumer, beforeFederatedQueueConsumerMessageHandled, federatedAddressConditionalCreateConsumer, federatedAddressConditionalCreateDivertConsumer, federatedQueueConditionalCreateConsumer, federationStreamStarted, federationStreamStoppedMethods 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, messageMoved, onMessageRouteException, onSendExceptionMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerQueuePlugin
afterCreateQueue, afterDestroyQueue, afterExpiryScan, beforeCreateQueue, beforeCreateQueue, beforeDestroyQueue, beforeDestroyQueue, beforeExpiryScanMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerResourcePlugin
afterPutTransaction, afterRemoveTransaction, beforePutTransaction, beforeRemoveTransactionMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerSessionPlugin
afterCloseSession, afterCreateSession, afterSessionMetadataAdded, beforeCloseSession, beforeCreateSession, beforeSessionMetadataAdded, duplicateSessionMetadataFailure
-
Field Details
-
SEND_CONNECTION_NOTIFICATIONS
- See Also:
-
SEND_ADDRESS_NOTIFICATIONS
- See Also:
-
SEND_DELIVERED_NOTIFICATIONS
- See Also:
-
SEND_EXPIRED_NOTIFICATIONS
- See Also:
-
-
Constructor Details
-
NotificationActiveMQServerPlugin
public NotificationActiveMQServerPlugin()
-
-
Method Details
-
init
used to pass configured properties to Plugin- Specified by:
initin interfaceActiveMQServerBasePlugin
-
registered
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
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
Description copied from interface:ActiveMQServerConnectionPluginA connection has been created.- Specified by:
afterCreateConnectionin interfaceActiveMQServerConnectionPlugin- Parameters:
connection- The newly created connection- Throws:
ActiveMQException
-
afterDestroyConnection
Description copied from interface:ActiveMQServerConnectionPluginA connection has been destroyed.- Specified by:
afterDestroyConnectionin interfaceActiveMQServerConnectionPlugin- Throws:
ActiveMQException
-
afterAddAddress
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() -
setSendConnectionNotifications
public void setSendConnectionNotifications(boolean sendConnectionNotifications) -
isSendDeliveredNotifications
public boolean isSendDeliveredNotifications() -
setSendDeliveredNotifications
public void setSendDeliveredNotifications(boolean sendDeliveredNotifications) -
isSendExpiredNotifications
public boolean isSendExpiredNotifications() -
setSendExpiredNotifications
public void setSendExpiredNotifications(boolean sendExpiredNotifications) -
isSendAddressNotifications
public boolean isSendAddressNotifications() -
setSendAddressNotifications
public void setSendAddressNotifications(boolean sendAddressNotifications)
-