Class VMTransportServer

  • All Implemented Interfaces:
    org.apache.activemq.Service, org.apache.activemq.transport.TransportServer

    public class VMTransportServer
    extends Object
    implements org.apache.activemq.transport.TransportServer
    Broker side of the VMTransport
    • Constructor Detail

      • VMTransportServer

        public VMTransportServer​(URI location,
                                 boolean disposeOnDisconnect)
        Parameters:
        location -
        disposeOnDisconnect -
    • Method Detail

      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a pretty print of this
      • configure

        public static org.apache.activemq.transport.Transport configure​(org.apache.activemq.transport.Transport transport)
        Configure transport
        Parameters:
        transport -
        Returns:
        the Transport
      • setAcceptListener

        public void setAcceptListener​(org.apache.activemq.transport.TransportAcceptListener acceptListener)
        Set the Transport accept listener for new Connections
        Specified by:
        setAcceptListener in interface org.apache.activemq.transport.TransportServer
        Parameters:
        acceptListener -
      • start

        public void start()
                   throws IOException
        Specified by:
        start in interface org.apache.activemq.Service
        Throws:
        IOException
      • stop

        public void stop()
                  throws IOException
        Specified by:
        stop in interface org.apache.activemq.Service
        Throws:
        IOException
      • getConnectURI

        public URI getConnectURI()
        Specified by:
        getConnectURI in interface org.apache.activemq.transport.TransportServer
      • getBindURI

        public URI getBindURI()
      • setBrokerInfo

        public void setBrokerInfo​(org.apache.activemq.command.BrokerInfo brokerInfo)
        Specified by:
        setBrokerInfo in interface org.apache.activemq.transport.TransportServer
      • getSocketAddress

        public InetSocketAddress getSocketAddress()
        Specified by:
        getSocketAddress in interface org.apache.activemq.transport.TransportServer
      • getConnectionCount

        public int getConnectionCount()
      • isSslServer

        public boolean isSslServer()
        Specified by:
        isSslServer in interface org.apache.activemq.transport.TransportServer
      • isAllowLinkStealing

        public boolean isAllowLinkStealing()
        Specified by:
        isAllowLinkStealing in interface org.apache.activemq.transport.TransportServer
      • setAllowLinkStealing

        public void setAllowLinkStealing​(boolean allowLinkStealing)