public interface ActiveMQServerSessionPlugin extends ActiveMQServerBasePlugin
Modifier and Type | Method and Description |
---|---|
default void |
afterCloseSession(ServerSession session,
boolean failed)
After a session is closed
|
default void |
afterCreateSession(ServerSession session)
After a session has been created.
|
default void |
afterSessionMetadataAdded(ServerSession session,
String key,
String data)
After session metadata is added to the session
|
default void |
beforeCloseSession(ServerSession session,
boolean failed)
Before a session is closed
|
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 |
beforeSessionMetadataAdded(ServerSession session,
String key,
String data)
Before session metadata is added to the session
|
default void |
duplicateSessionMetadataFailure(ServerSession session,
String key,
String data)
Called when adding session metadata fails because the metadata is a duplicate
|
init, registered, unregistered
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 duplicateSessionMetadataFailure(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
Copyright © 2021 JBoss by Red Hat. All rights reserved.