Interface RemotingService

    • Method Detail

      • removeConnection

        RemotingConnection removeConnection​(Object remotingConnectionID)
        Remove a connection from the connections held by the remoting service. This method must be used only from the management API. RemotingConnections are removed from the remoting service when their connectionTTL is hit.
        Parameters:
        remotingConnectionID - the ID of the RemotingConnection to removed
        Returns:
        the removed RemotingConnection
      • getConnectionCount

        default int getConnectionCount()
        Returns:
        the number of clients connected to this server.
      • getTotalConnectionCount

        long getTotalConnectionCount()
        Returns:
        the number of clients which have connected to this server since it was started.
      • getConnectionCountLatch

        ReusableLatch getConnectionCountLatch()
      • addIncomingInterceptor

        void addIncomingInterceptor​(BaseInterceptor interceptor)
      • addOutgoingInterceptor

        void addOutgoingInterceptor​(BaseInterceptor interceptor)
      • removeIncomingInterceptor

        boolean removeIncomingInterceptor​(BaseInterceptor interceptor)
      • removeOutgoingInterceptor

        boolean removeOutgoingInterceptor​(BaseInterceptor interceptor)
      • isStarted

        boolean isStarted()
      • allowInvmSecurityOverride

        void allowInvmSecurityOverride​(ActiveMQPrincipal principal)
        Allow acceptors to use this as their default security Principal if applicable.

        Used by AS7 integration code.

        Parameters:
        principal -
      • pauseAcceptors

        void pauseAcceptors()
        Pauses the acceptors so that no more connections can be made to the server
      • isPaused

        boolean isPaused()
        Pauses the acceptors so that no more connections can be made to the server
      • freeze

        void freeze​(String scaleDownNodeID,
                    CoreRemotingConnection remotingConnection)
        Freezes and then disconnects all connections except the given one and tells the client where else it might connect (only applicable if server is in a cluster and uses scaleDown-on-failover=true).
        Parameters:
        scaleDownNodeID -
        remotingConnection -
      • getAcceptor

        Acceptor getAcceptor​(String name)
        Returns the acceptor identified by its name or null if it does not exists.
        Parameters:
        name - the name of the acceptor