public class StompNIOTransportFactory extends NIOTransportFactory implements BrokerServiceAware
Constructor and Description |
---|
StompNIOTransportFactory() |
Modifier and Type | Method and Description |
---|---|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
java.util.Map options)
Similar to configure(...) but this avoid adding in the MutexTransport and
ResponseCorrelator transport layers so that the resulting transport can
more efficiently be used as part of a composite transport.
|
protected TcpTransport |
createTcpTransport(WireFormat wf,
javax.net.SocketFactory socketFactory,
java.net.URI location,
java.net.URI localLocation)
Allows subclasses of TcpTransportFactory to provide a create custom
TcpTransport intances.
|
protected TcpTransportServer |
createTcpTransportServer(java.net.URI location,
javax.net.ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransportServer.
|
protected java.lang.String |
getDefaultWireFormatType() |
protected boolean |
isUseInactivityMonitor(Transport transport)
Returns true if the inactivity monitor should be used on the transport
|
void |
setBrokerService(BrokerService brokerService) |
createServerSocketFactory, createSocketFactory
createTransport, doBind
bind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getOption, registerTransportFactory, serverConfigure
public StompNIOTransportFactory()
protected java.lang.String getDefaultWireFormatType()
getDefaultWireFormatType
in class TransportFactory
protected TcpTransportServer createTcpTransportServer(java.net.URI location, javax.net.ServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.URISyntaxException
TcpTransportFactory
createTcpTransportServer
in class NIOTransportFactory
java.io.IOException
java.net.URISyntaxException
protected TcpTransport createTcpTransport(WireFormat wf, javax.net.SocketFactory socketFactory, java.net.URI location, java.net.URI localLocation) throws java.net.UnknownHostException, java.io.IOException
TcpTransportFactory
createTcpTransport
in class NIOTransportFactory
java.net.UnknownHostException
java.io.IOException
public Transport compositeConfigure(Transport transport, WireFormat format, java.util.Map options)
TransportFactory
compositeConfigure
in class TcpTransportFactory
protected boolean isUseInactivityMonitor(Transport transport)
TcpTransportFactory
isUseInactivityMonitor
in class TcpTransportFactory
public void setBrokerService(BrokerService brokerService)
setBrokerService
in interface BrokerServiceAware
Copyright © 2005-2012. All Rights Reserved.