Class TransportServerSupport

java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
All Implemented Interfaces:
Service, TransportServer
Direct Known Subclasses:
TransportServerThreadSupport, UdpTransportServer

public abstract class TransportServerSupport extends ServiceSupport implements TransportServer
A useful base class for implementations of TransportServer
  • Field Details

    • transportOptions

      protected Map<String,Object> transportOptions
    • allowLinkStealing

      protected boolean allowLinkStealing
  • Constructor Details

    • TransportServerSupport

      public TransportServerSupport()
    • TransportServerSupport

      public TransportServerSupport(URI location)
  • Method Details

    • getAcceptListener

      public TransportAcceptListener getAcceptListener()
      Returns:
      Returns the acceptListener.
    • setAcceptListener

      public void setAcceptListener(TransportAcceptListener acceptListener)
      Registers an accept listener
      Specified by:
      setAcceptListener in interface TransportServer
      Parameters:
      acceptListener -
    • getConnectURI

      public URI getConnectURI()
      Specified by:
      getConnectURI in interface TransportServer
      Returns:
      Returns the location.
    • setConnectURI

      public void setConnectURI(URI location)
      Parameters:
      location - The location to set.
    • onAcceptError

      protected void onAcceptError(Exception e)
    • getBindLocation

      public URI getBindLocation()
    • setBindLocation

      public void setBindLocation(URI bindLocation)
    • setTransportOption

      public void setTransportOption(Map<String,Object> transportOptions)
    • isAllowLinkStealing

      public boolean isAllowLinkStealing()
      Description copied from interface: TransportServer
      Some protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins). This is the default for AMQP and MQTT. However, JMS 1.1 spec requires the opposite
      Specified by:
      isAllowLinkStealing in interface TransportServer
      Returns:
      true if allow link stealing is enabled.
    • setAllowLinkStealing

      public void setAllowLinkStealing(boolean allowLinkStealing)