Package org.apache.activemq.transport.vm
Class VMTransportServer
java.lang.Object
org.apache.activemq.transport.vm.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.activemq.transport.Transportconfigure(org.apache.activemq.transport.Transport transport) Configure transportconnect()intlongbooleanbooleanvoidvoidsetAcceptListener(org.apache.activemq.transport.TransportAcceptListener acceptListener) Set the Transport accept listener for new ConnectionsvoidsetAllowLinkStealing(boolean allowLinkStealing) voidsetBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo) voidstart()voidstop()toString()
-
Constructor Details
-
VMTransportServer
- Parameters:
location-disposeOnDisconnect-
-
-
Method Details
-
toString
-
connect
- Returns:
- new VMTransport
- Throws:
IOException
-
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:
setAcceptListenerin interfaceorg.apache.activemq.transport.TransportServer- Parameters:
acceptListener-
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
IOException
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
IOException
-
getConnectURI
- Specified by:
getConnectURIin interfaceorg.apache.activemq.transport.TransportServer
-
getBindURI
-
setBrokerInfo
public void setBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo) - Specified by:
setBrokerInfoin interfaceorg.apache.activemq.transport.TransportServer
-
getSocketAddress
- Specified by:
getSocketAddressin interfaceorg.apache.activemq.transport.TransportServer
-
getConnectionCount
public int getConnectionCount() -
isSslServer
public boolean isSslServer()- Specified by:
isSslServerin interfaceorg.apache.activemq.transport.TransportServer
-
isAllowLinkStealing
public boolean isAllowLinkStealing()- Specified by:
isAllowLinkStealingin interfaceorg.apache.activemq.transport.TransportServer
-
setAllowLinkStealing
public void setAllowLinkStealing(boolean allowLinkStealing) -
getMaxConnectionExceededCount
public long getMaxConnectionExceededCount()- Specified by:
getMaxConnectionExceededCountin interfaceorg.apache.activemq.transport.TransportServer
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatisticsin interfaceorg.apache.activemq.transport.TransportServer
-