public abstract class TransportServerSupport extends ServiceSupport implements TransportServer
TransportServer| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowLinkStealing |
protected java.util.Map<java.lang.String,java.lang.Object> |
transportOptions |
| Constructor and Description |
|---|
TransportServerSupport() |
TransportServerSupport(java.net.URI location) |
| Modifier and Type | Method and Description |
|---|---|
TransportAcceptListener |
getAcceptListener() |
java.net.URI |
getBindLocation() |
java.net.URI |
getConnectURI() |
boolean |
isAllowLinkStealing()
Some protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins).
|
protected void |
onAcceptError(java.lang.Exception e) |
void |
setAcceptListener(TransportAcceptListener acceptListener)
Registers an accept listener
|
void |
setAllowLinkStealing(boolean allowLinkStealing) |
void |
setBindLocation(java.net.URI bindLocation) |
void |
setConnectURI(java.net.URI location) |
void |
setTransportOption(java.util.Map<java.lang.String,java.lang.Object> transportOptions) |
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSocketAddress, isSslServer, setBrokerInfoprotected java.util.Map<java.lang.String,java.lang.Object> transportOptions
protected boolean allowLinkStealing
public TransportServerSupport()
public TransportServerSupport(java.net.URI location)
public TransportAcceptListener getAcceptListener()
public void setAcceptListener(TransportAcceptListener acceptListener)
setAcceptListener in interface TransportServeracceptListener - public java.net.URI getConnectURI()
getConnectURI in interface TransportServerpublic void setConnectURI(java.net.URI location)
location - The location to set.protected void onAcceptError(java.lang.Exception e)
public java.net.URI getBindLocation()
public void setBindLocation(java.net.URI bindLocation)
public void setTransportOption(java.util.Map<java.lang.String,java.lang.Object> transportOptions)
public boolean isAllowLinkStealing()
TransportServerisAllowLinkStealing in interface TransportServerpublic void setAllowLinkStealing(boolean allowLinkStealing)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.