Interface CoreRemotingConnection

    • Method Detail

      • getChannelVersion

        int getChannelVersion()
        The client protocol used on the communication. This will determine if the client has support for certain packet types
      • isVersionBeforeAddressChange

        default boolean isVersionBeforeAddressChange()
      • isVersionBeforeAsyncResponseChange

        default boolean isVersionBeforeAsyncResponseChange()
      • isVersionSupportConsumerPriority

        default boolean isVersionSupportConsumerPriority()
      • isVersionNewFQQN

        default boolean isVersionNewFQQN()
      • isVersionSupportClientID

        default boolean isVersionSupportClientID()
      • isVersionSupportRouting

        default boolean isVersionSupportRouting()
      • isVersionSupportCommitV2

        default boolean isVersionSupportCommitV2()
      • isBeforeTwoEighteen

        default boolean isBeforeTwoEighteen()
      • setChannelVersion

        void setChannelVersion​(int clientVersion)
        Sets the client protocol used on the communication. This will determine if the client has support for certain packet types
      • getChannel

        Channel getChannel​(long channelID,
                           int confWindowSize)
        Returns the channel with the channel id specified.

        If it does not exist create it with the confirmation window size.

        Parameters:
        channelID - the channel id
        confWindowSize - the confirmation window size
        Returns:
        the channel
      • putChannel

        void putChannel​(long channelID,
                        Channel channel)
        add the channel with the specified channel id
        Parameters:
        channelID - the channel id
        channel - the channel
      • removeChannel

        boolean removeChannel​(long channelID)
        remove the channel with the specified channel id
        Parameters:
        channelID - the channel id
        Returns:
        true if removed
      • generateChannelID

        long generateChannelID()
        generate a unique (within this connection) channel id
        Returns:
        the id
      • syncIDGeneratorSequence

        void syncIDGeneratorSequence​(long id)
        Resets the id generator used to generate id's.
        Parameters:
        id - the first id to set it to
      • getIDGeneratorSequence

        long getIDGeneratorSequence()
        Returns the next id to be chosen.
        Returns:
        the id
      • getBlockingCallTimeout

        long getBlockingCallTimeout()
        Returns the current timeout for blocking calls
        Returns:
        the timeout in milliseconds
      • getBlockingCallFailoverTimeout

        long getBlockingCallFailoverTimeout()
        Returns the current timeout for blocking calls
        Returns:
        the timeout in milliseconds
      • getTransferLock

        Object getTransferLock()
        Returns the transfer lock used when transferring connections.
        Returns:
        the lock
      • getDefaultActiveMQPrincipal

        ActiveMQPrincipal getDefaultActiveMQPrincipal()
        Returns the default security principal
        Returns:
        the principal
      • blockUntilWritable

        boolean blockUntilWritable​(long timeout)
        Parameters:
        timeout -
        Returns:
        Throws:
        IllegalStateException - if the connection is closed