public interface ActiveMQServerPlugin
Modifier and Type | Method and Description |
---|---|
default void |
afterAddAddress(AddressInfo addressInfo,
boolean reload)
After an address has been added tot he broker
|
default void |
afterAddBinding(Binding binding)
After a binding has been added
|
default void |
afterCloseConsumer(ServerConsumer consumer,
boolean failed)
After a consumer is closed
|
default void |
afterCloseSession(ServerSession session,
boolean failed)
After a session is closed
|
default void |
afterCreateConnection(RemotingConnection connection)
A connection has been created.
|
default void |
afterCreateConsumer(ServerConsumer consumer)
After a consumer has been created
|
default void |
afterCreateQueue(Queue queue)
After a queue has been created
|
default void |
afterCreateSession(ServerSession session)
After a session has been created.
|
default void |
afterDeliver(MessageReference reference)
Deprecated.
|
default void |
afterDeliver(ServerConsumer consumer,
MessageReference reference)
After a message is delivered to a client consumer
|
default void |
afterDeployBridge(Bridge bridge)
After a bridge has been deployed
|
default void |
afterDestroyConnection(RemotingConnection connection)
A connection has been destroyed.
|
default void |
afterDestroyQueue(Queue queue,
SimpleString address,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean autoDeleteAddress)
After a queue has been destroyed
|
default void |
afterMessageRoute(Message message,
RoutingContext context,
boolean direct,
boolean rejectDuplicates,
RoutingStatus result)
After a message is routed
|
default void |
afterRemoveAddress(SimpleString address,
AddressInfo addressInfo)
After an address has been removed
|
default void |
afterRemoveBinding(Binding binding,
Transaction tx,
boolean deleteData)
After a binding is removed
|
default void |
afterSend(ServerSession session,
Transaction tx,
Message message,
boolean direct,
boolean noAutoCreateQueue,
RoutingStatus result)
After a message is sent
|
default void |
afterSend(Transaction tx,
Message message,
boolean direct,
boolean noAutoCreateQueue,
RoutingStatus result)
|
default void |
afterSessionMetadataAdded(ServerSession session,
String key,
String data)
After session metadata is added to the session
|
default void |
afterUpdateAddress(AddressInfo addressInfo)
After an address has been updated
|
default void |
beforeAddAddress(AddressInfo addressInfo,
boolean reload)
Before an address is added tot he broker
|
default void |
beforeAddBinding(Binding binding)
Before a binding is added
|
default void |
beforeCloseConsumer(ServerConsumer consumer,
boolean failed)
Before a consumer is closed
|
default void |
beforeCloseSession(ServerSession session,
boolean failed)
Before a session is closed
|
default void |
beforeCreateConsumer(long consumerID,
QueueBinding queueBinding,
SimpleString filterString,
boolean browseOnly,
boolean supportLargeMessage)
Before a consumer is created
|
default void |
beforeCreateConsumer(long consumerID,
SimpleString queueName,
SimpleString filterString,
boolean browseOnly,
boolean supportLargeMessage)
Deprecated.
use {@link #beforeCreateConsumer(long, QueueBinding, SimpleString, boolean, boolean)
|
default void |
beforeCreateQueue(QueueConfig queueConfig)
Before a queue is created
|
default void |
beforeCreateSession(String name,
String username,
int minLargeMessageSize,
RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
boolean autoCreateQueues,
OperationContext context,
Map<SimpleString,RoutingType> prefixes)
Before a session is created.
|
default void |
beforeDeliver(MessageReference reference)
Deprecated.
use throws ActiveMQException
beforeDeliver(ServerConsumer, MessageReference) |
default void |
beforeDeliver(ServerConsumer consumer,
MessageReference reference)
Before a message is delivered to a client consumer
|
default void |
beforeDeployBridge(BridgeConfiguration config)
Before a bridge is deployed
|
default void |
beforeDestroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean autoDeleteAddress)
Before a queue is destroyed
|
default void |
beforeMessageRoute(Message message,
RoutingContext context,
boolean direct,
boolean rejectDuplicates)
Before a message is routed
|
default void |
beforeRemoveAddress(SimpleString address)
Before an address is removed
|
default void |
beforeRemoveBinding(SimpleString uniqueName,
Transaction tx,
boolean deleteData)
Before a binding is removed
|
default void |
beforeSend(ServerSession session,
Transaction tx,
Message message,
boolean direct,
boolean noAutoCreateQueue)
Before a message is sent
|
default void |
beforeSend(Transaction tx,
Message message,
boolean direct,
boolean noAutoCreateQueue)
|
default void |
beforeSessionMetadataAdded(ServerSession session,
String key,
String data)
Before session metadata is added to the session
|
default void |
beforeUpdateAddress(SimpleString address,
EnumSet<RoutingType> routingTypes)
Before an address is updated
|
default void |
criticalFailure(CriticalComponent components)
A Critical failure has been detected.
|
default void |
init(Map<String,String> properties)
used to pass configured properties to Plugin
|
default void |
messageAcknowledged(MessageReference ref,
AckReason reason)
Deprecated.
|
default void |
messageAcknowledged(MessageReference ref,
AckReason reason,
ServerConsumer consumer)
A message has been acknowledged
|
default void |
messageExpired(MessageReference message,
SimpleString messageExpiryAddress)
Deprecated.
|
default void |
messageExpired(MessageReference message,
SimpleString messageExpiryAddress,
ServerConsumer consumer)
A message has been expired
|
default void |
registered(ActiveMQServer server)
The plugin has been registered with the server
|
default void |
unregistered(ActiveMQServer server)
The plugin has been unregistered with the server
|
default void registered(ActiveMQServer server)
server
- The ActiveMQServer the plugin has been registered todefault void unregistered(ActiveMQServer server)
server
- The ActiveMQServer the plugin has been unregistered todefault void afterCreateConnection(RemotingConnection connection) throws ActiveMQException
connection
- The newly created connectionActiveMQException
default void afterDestroyConnection(RemotingConnection connection) throws ActiveMQException
connection
- ActiveMQException
default void beforeCreateSession(String name, String username, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes) throws ActiveMQException
name
- username
- minLargeMessageSize
- connection
- autoCommitSends
- autoCommitAcks
- preAcknowledge
- xa
- defaultAddress
- callback
- autoCreateQueues
- context
- prefixes
- ActiveMQException
default void afterCreateSession(ServerSession session) throws ActiveMQException
session
- The newly created sessionActiveMQException
default void beforeCloseSession(ServerSession session, boolean failed) throws ActiveMQException
session
- failed
- ActiveMQException
default void afterCloseSession(ServerSession session, boolean failed) throws ActiveMQException
session
- failed
- ActiveMQException
default void beforeSessionMetadataAdded(ServerSession session, String key, String data) throws ActiveMQException
session
- key
- data
- ActiveMQException
default void afterSessionMetadataAdded(ServerSession session, String key, String data) throws ActiveMQException
session
- key
- data
- ActiveMQException
@Deprecated default void beforeCreateConsumer(long consumerID, SimpleString queueName, SimpleString filterString, boolean browseOnly, boolean supportLargeMessage) throws ActiveMQException
consumerID
- queueName
- filterString
- browseOnly
- supportLargeMessage
- ActiveMQException
default void beforeCreateConsumer(long consumerID, QueueBinding queueBinding, SimpleString filterString, boolean browseOnly, boolean supportLargeMessage) throws ActiveMQException
consumerID
- QueueBinding
- filterString
- browseOnly
- supportLargeMessage
- ActiveMQException
default void afterCreateConsumer(ServerConsumer consumer) throws ActiveMQException
consumer
- the created consumerActiveMQException
default void beforeCloseConsumer(ServerConsumer consumer, boolean failed) throws ActiveMQException
consumer
- failed
- ActiveMQException
default void afterCloseConsumer(ServerConsumer consumer, boolean failed) throws ActiveMQException
consumer
- failed
- ActiveMQException
default void beforeAddAddress(AddressInfo addressInfo, boolean reload) throws ActiveMQException
addressInfo
- The addressInfo that will be addedreload
- If the address is being reloadedActiveMQException
default void afterAddAddress(AddressInfo addressInfo, boolean reload) throws ActiveMQException
addressInfo
- The newly added addressreload
- If the address is being reloadedActiveMQException
default void beforeUpdateAddress(SimpleString address, EnumSet<RoutingType> routingTypes) throws ActiveMQException
address
- The existing address info that is about to be updatedroutingTypes
- The new routing types that the address will be updated withActiveMQException
default void afterUpdateAddress(AddressInfo addressInfo) throws ActiveMQException
addressInfo
- The newly updated address infoActiveMQException
default void beforeRemoveAddress(SimpleString address) throws ActiveMQException
address
- The address that will be removedActiveMQException
default void afterRemoveAddress(SimpleString address, AddressInfo addressInfo) throws ActiveMQException
address
- The address that has been removedaddressInfo
- The address info that has been removed or null if not removedActiveMQException
default void beforeCreateQueue(QueueConfig queueConfig) throws ActiveMQException
queueConfig
- ActiveMQException
default void afterCreateQueue(Queue queue) throws ActiveMQException
queue
- The newly created queueActiveMQException
default void beforeDestroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) throws ActiveMQException
queueName
- session
- checkConsumerCount
- removeConsumers
- autoDeleteAddress
- ActiveMQException
default void afterDestroyQueue(Queue queue, SimpleString address, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) throws ActiveMQException
queue
- address
- session
- checkConsumerCount
- removeConsumers
- autoDeleteAddress
- ActiveMQException
default void beforeAddBinding(Binding binding) throws ActiveMQException
binding
- ActiveMQException
default void afterAddBinding(Binding binding) throws ActiveMQException
binding
- The newly added bindingActiveMQException
default void beforeRemoveBinding(SimpleString uniqueName, Transaction tx, boolean deleteData) throws ActiveMQException
uniqueName
- tx
- deleteData
- ActiveMQException
default void afterRemoveBinding(Binding binding, Transaction tx, boolean deleteData) throws ActiveMQException
binding
- tx
- deleteData
- ActiveMQException
default void beforeSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) throws ActiveMQException
session
- the session that sends the messagetx
- message
- direct
- noAutoCreateQueue
- ActiveMQException
default void afterSend(ServerSession session, Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue, RoutingStatus result) throws ActiveMQException
session
- the session that sends the messagetx
- message
- direct
- noAutoCreateQueue
- result
- ActiveMQException
@Deprecated default void beforeSend(Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue) throws ActiveMQException
tx
- message
- direct
- noAutoCreateQueue
- ActiveMQException
@Deprecated default void afterSend(Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue, RoutingStatus result) throws ActiveMQException
tx
- message
- direct
- noAutoCreateQueue
- result
- ActiveMQException
default void beforeMessageRoute(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates) throws ActiveMQException
message
- context
- direct
- rejectDuplicates
- ActiveMQException
default void afterMessageRoute(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates, RoutingStatus result) throws ActiveMQException
message
- context
- direct
- rejectDuplicates
- result
- ActiveMQException
default void beforeDeliver(ServerConsumer consumer, MessageReference reference) throws ActiveMQException
consumer
- the consumer the message will be delivered toreference
- message referenceActiveMQException
default void afterDeliver(ServerConsumer consumer, MessageReference reference) throws ActiveMQException
consumer
- the consumer the message was delivered toreference
- message referenceActiveMQException
@Deprecated default void beforeDeliver(MessageReference reference) throws ActiveMQException
beforeDeliver(ServerConsumer, MessageReference)
reference
- ActiveMQException
@Deprecated default void afterDeliver(MessageReference reference) throws ActiveMQException
afterDeliver(ServerConsumer, MessageReference)
reference
- ActiveMQException
@Deprecated default void messageExpired(MessageReference message, SimpleString messageExpiryAddress) throws ActiveMQException
messageExpired(MessageReference, SimpleString, ServerConsumer)
message
- The expired messagemessageExpiryAddress
- The message expiry address if existsActiveMQException
default void messageExpired(MessageReference message, SimpleString messageExpiryAddress, ServerConsumer consumer) throws ActiveMQException
message
- The expired messagemessageExpiryAddress
- The message expiry address if existsconsumer
- the Consumer that acknowledged the message - this field is optional
and can be nullActiveMQException
@Deprecated default void messageAcknowledged(MessageReference ref, AckReason reason) throws ActiveMQException
messageAcknowledged(MessageReference, AckReason, ServerConsumer)
ref
- The acked messagereason
- The ack reasonActiveMQException
default void messageAcknowledged(MessageReference ref, AckReason reason, ServerConsumer consumer) throws ActiveMQException
ref
- The acked messagereason
- The ack reasonconsumer
- the Consumer that acknowledged the message - this field is optional
and can be nullActiveMQException
default void beforeDeployBridge(BridgeConfiguration config) throws ActiveMQException
config
- The bridge configurationActiveMQException
default void afterDeployBridge(Bridge bridge) throws ActiveMQException
bridge
- The newly deployed bridgeActiveMQException
default void criticalFailure(CriticalComponent components) throws ActiveMQException
components
- ActiveMQException
Copyright © 2018 JBoss by Red Hat. All rights reserved.