public class UdpTransportServer extends TransportServerSupport
TransportServertransportOptions| 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, setTransportOptionaddServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stoppublic UdpTransportServer(java.net.URI connectURI, UdpTransport serverTransport, Transport configuredTransport, ReplayStrategy replayStrategy)
public java.lang.String toString()
toString in class java.lang.Objectpublic void run()
public UdpTransport getServerTransport()
public void setBrokerInfo(BrokerInfo brokerInfo)
TransportServerprotected void doStart() throws java.lang.Exception
doStart in class ServiceSupportjava.lang.Exceptionprotected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop in class ServiceSupportjava.lang.Exceptionprotected void processInboundConnection(Command command)
protected Transport configureTransport(Transport transport)
protected Transport createTransport(Command command, DatagramEndpoint endpoint) throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getSocketAddress()
Copyright © 2005-2012. All Rights Reserved.