org.apache.activemq.transport.udp
public class UdpTransportServer extends TransportServerSupport
TransportServer
transportOptions
Constructor and Description |
---|
UdpTransportServer(java.net.URI connectURI,
UdpTransport serverTransport,
Transport configuredTransport,
ReplayStrategy replayStrategy) |
Modifier and Type | Method and Description |
---|---|
protected Transport |
configureTransport(Transport transport) |
protected Transport |
createTransport(Command command,
DatagramEndpoint endpoint) |
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
UdpTransport |
getServerTransport() |
java.net.InetSocketAddress |
getSocketAddress() |
protected void |
processInboundConnection(Command command) |
void |
run() |
void |
setBrokerInfo(BrokerInfo brokerInfo)
Associates a broker info with the transport server so that the transport
can do discovery advertisements of the broker.
|
java.lang.String |
toString() |
getAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOption
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
public UdpTransportServer(java.net.URI connectURI, UdpTransport serverTransport, Transport configuredTransport, ReplayStrategy replayStrategy)
public java.lang.String toString()
toString
in class java.lang.Object
public void run()
public UdpTransport getServerTransport()
public void setBrokerInfo(BrokerInfo brokerInfo)
TransportServer
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
protected void processInboundConnection(Command command)
protected Transport configureTransport(Transport transport)
protected Transport createTransport(Command command, DatagramEndpoint endpoint) throws java.io.IOException
java.io.IOException
public java.net.InetSocketAddress getSocketAddress()
Copyright © 2005-2014. All Rights Reserved.