public abstract class TransportServerSupport extends ServiceSupport implements TransportServer
TransportServer
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowLinkStealing |
protected Map<String,Object> |
transportOptions |
Constructor and Description |
---|
TransportServerSupport() |
TransportServerSupport(URI location) |
Modifier and Type | Method and Description |
---|---|
TransportAcceptListener |
getAcceptListener() |
URI |
getBindLocation() |
URI |
getConnectURI() |
boolean |
isAllowLinkStealing()
Some protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins).
|
protected void |
onAcceptError(Exception e) |
void |
setAcceptListener(TransportAcceptListener acceptListener)
Registers an accept listener
|
void |
setAllowLinkStealing(boolean allowLinkStealing) |
void |
setBindLocation(URI bindLocation) |
void |
setConnectURI(URI location) |
void |
setTransportOption(Map<String,Object> transportOptions) |
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSocketAddress, isSslServer, setBrokerInfo
protected Map<String,Object> transportOptions
protected boolean allowLinkStealing
public TransportServerSupport()
public TransportServerSupport(URI location)
public TransportAcceptListener getAcceptListener()
public void setAcceptListener(TransportAcceptListener acceptListener)
setAcceptListener
in interface TransportServer
acceptListener
- public URI getConnectURI()
getConnectURI
in interface TransportServer
public void setConnectURI(URI location)
location
- The location to set.protected void onAcceptError(Exception e)
public URI getBindLocation()
public void setBindLocation(URI bindLocation)
public void setTransportOption(Map<String,Object> transportOptions)
public boolean isAllowLinkStealing()
TransportServer
isAllowLinkStealing
in interface TransportServer
public void setAllowLinkStealing(boolean allowLinkStealing)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.