Interface ActiveMQServerSessionPlugin
- All Superinterfaces:
ActiveMQServerBasePlugin
- All Known Subinterfaces:
ActiveMQServerPlugin
- All Known Implementing Classes:
BrokerMessageAuthorizationPlugin,LoggingActiveMQServerPlugin,NotificationActiveMQServerPlugin
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterCloseSession(ServerSession session, boolean failed) After a session is closeddefault voidafterCreateSession(ServerSession session) After a session has been created.default voidafterSessionMetadataAdded(ServerSession session, String key, String data) After session metadata is added to the sessiondefault voidbeforeCloseSession(ServerSession session, boolean failed) Before a session is closeddefault voidbeforeCreateSession(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 voidbeforeSessionMetadataAdded(ServerSession session, String key, String data) Before session metadata is added to the sessiondefault voidduplicateSessionMetadataFailure(ServerSession session, String key, String data) Called when adding session metadata fails because the metadata is a duplicateMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, setInit, unregistered
-
Method Details
-
beforeCreateSession
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 ActiveMQExceptionBefore a session is created.- Throws:
ActiveMQException
-
afterCreateSession
After a session has been created.- Parameters:
session- The newly created session- Throws:
ActiveMQException
-
beforeCloseSession
Before a session is closed- Throws:
ActiveMQException
-
afterCloseSession
After a session is closed- Throws:
ActiveMQException
-
beforeSessionMetadataAdded
default void beforeSessionMetadataAdded(ServerSession session, String key, String data) throws ActiveMQException Before session metadata is added to the session- Throws:
ActiveMQException
-
duplicateSessionMetadataFailure
default void duplicateSessionMetadataFailure(ServerSession session, String key, String data) throws ActiveMQException Called when adding session metadata fails because the metadata is a duplicate- Throws:
ActiveMQException
-
afterSessionMetadataAdded
default void afterSessionMetadataAdded(ServerSession session, String key, String data) throws ActiveMQException After session metadata is added to the session- Throws:
ActiveMQException
-