Class ConnectionContext


  • public class ConnectionContext
    extends Object
    Used to hold context information needed to process requests sent to a broker.
    • Constructor Detail

      • ConnectionContext

        public ConnectionContext()
      • ConnectionContext

        public ConnectionContext​(ConnectionInfo info)
    • Method Detail

      • setSecurityContext

        public void setSecurityContext​(SecurityContext subject)
      • getBroker

        public Broker getBroker()
        Returns:
        the broker being used.
      • setBroker

        public void setBroker​(Broker broker)
        Parameters:
        broker - being used
      • getConnection

        public Connection getConnection()
        Returns:
        the connection being used
      • setConnection

        public void setConnection​(Connection connection)
        Parameters:
        connection - being used
      • getTransaction

        public Transaction getTransaction()
        Returns:
        the transaction being used.
      • setTransaction

        public void setTransaction​(Transaction transaction)
        Parameters:
        transaction - being used.
      • getConnector

        public Connector getConnector()
        Returns:
        the connector being used.
      • setConnector

        public void setConnector​(Connector connector)
        Parameters:
        connector - being used.
      • setMessageAuthorizationPolicy

        public void setMessageAuthorizationPolicy​(MessageAuthorizationPolicy messageAuthorizationPolicy)
        Sets the policy used to decide if the current connection is authorized to consume a given message
      • isInRecoveryMode

        public boolean isInRecoveryMode()
        Returns:
        true if in recovery mode.
      • setInRecoveryMode

        public void setInRecoveryMode​(boolean inRecoveryMode)
      • isInTransaction

        public boolean isInTransaction()
      • getClientId

        public String getClientId()
      • setClientId

        public void setClientId​(String clientId)
      • isReconnect

        public boolean isReconnect()
      • setReconnect

        public void setReconnect​(boolean reconnect)
      • setWireFormatInfo

        public void setWireFormatInfo​(WireFormatInfo wireFormatInfo)
      • setConnectionId

        public void setConnectionId​(ConnectionId connectionId)
      • getUserName

        public String getUserName()
      • setUserName

        protected void setUserName​(String userName)
      • getLongTermStoreContext

        public Object getLongTermStoreContext()
      • setLongTermStoreContext

        public void setLongTermStoreContext​(Object longTermStoreContext)
      • isProducerFlowControl

        public boolean isProducerFlowControl()
      • setProducerFlowControl

        public void setProducerFlowControl​(boolean disableProducerFlowControl)
      • isNetworkConnection

        public boolean isNetworkConnection()
      • setNetworkConnection

        public void setNetworkConnection​(boolean networkConnection)
      • setDontSendReponse

        public void setDontSendReponse​(boolean b)
      • isDontSendReponse

        public boolean isDontSendReponse()
      • isClientMaster

        public boolean isClientMaster()
        Returns:
        the clientMaster
      • setClientMaster

        public void setClientMaster​(boolean clientMaster)
        Parameters:
        clientMaster - the clientMaster to set
      • isFaultTolerant

        public boolean isFaultTolerant()
      • setFaultTolerant

        public void setFaultTolerant​(boolean faultTolerant)
      • setConnectionState

        public void setConnectionState​(ConnectionState connectionState)
      • isAllowLinkStealing

        public boolean isAllowLinkStealing()