Interface ActiveMQServerSessionPlugin

    • Method Detail

      • 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,
                                         org.apache.activemq.artemis.core.persistence.OperationContext context,
                                         Map<SimpleString,​RoutingType> prefixes)
                                  throws ActiveMQException
        Before a session is created.
        Parameters:
        name -
        username -
        minLargeMessageSize -
        connection -
        autoCommitSends -
        autoCommitAcks -
        preAcknowledge -
        xa -
        defaultAddress -
        callback -
        autoCreateQueues -
        context -
        prefixes -
        Throws:
        ActiveMQException
      • afterCreateSession

        default void afterCreateSession​(org.apache.activemq.artemis.core.server.ServerSession session)
                                 throws ActiveMQException
        After a session has been created.
        Parameters:
        session - The newly created session
        Throws:
        ActiveMQException
      • beforeCloseSession

        default void beforeCloseSession​(org.apache.activemq.artemis.core.server.ServerSession session,
                                        boolean failed)
                                 throws ActiveMQException
        Before a session is closed
        Parameters:
        session -
        failed -
        Throws:
        ActiveMQException
      • afterCloseSession

        default void afterCloseSession​(org.apache.activemq.artemis.core.server.ServerSession session,
                                       boolean failed)
                                throws ActiveMQException
        After a session is closed
        Parameters:
        session -
        failed -
        Throws:
        ActiveMQException
      • beforeSessionMetadataAdded

        default void beforeSessionMetadataAdded​(org.apache.activemq.artemis.core.server.ServerSession session,
                                                String key,
                                                String data)
                                         throws ActiveMQException
        Before session metadata is added to the session
        Parameters:
        session -
        key -
        data -
        Throws:
        ActiveMQException
      • duplicateSessionMetadataFailure

        default void duplicateSessionMetadataFailure​(org.apache.activemq.artemis.core.server.ServerSession session,
                                                     String key,
                                                     String data)
                                              throws ActiveMQException
        Called when adding session metadata fails because the metadata is a duplicate
        Parameters:
        session -
        key -
        data -
        Throws:
        ActiveMQException
      • afterSessionMetadataAdded

        default void afterSessionMetadataAdded​(org.apache.activemq.artemis.core.server.ServerSession session,
                                               String key,
                                               String data)
                                        throws ActiveMQException
        After session metadata is added to the session
        Parameters:
        session -
        key -
        data -
        Throws:
        ActiveMQException