public class TcpTransportFactory extends TransportFactory
| Constructor and Description |
|---|
TcpTransportFactory() |
| 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 Transport |
createInactivityMonitor(Transport transport,
WireFormat format) |
protected javax.net.ServerSocketFactory |
createServerSocketFactory() |
protected javax.net.SocketFactory |
createSocketFactory() |
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 Transport |
createTransport(java.net.URI location,
WireFormat wf)
Factory method to create a new transport
|
TransportServer |
doBind(java.net.URI location) |
protected boolean |
isUseInactivityMonitor(Transport transport)
Returns true if the inactivity monitor should be used on the transport
|
bind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigurepublic TcpTransportFactory()
public TransportServer doBind(java.net.URI location) throws java.io.IOException
doBind in class TransportFactoryjava.io.IOExceptionprotected TcpTransportServer createTcpTransportServer(java.net.URI location, javax.net.ServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.URISyntaxException
location - serverSocketFactory - java.io.IOExceptionjava.net.URISyntaxExceptionpublic Transport compositeConfigure(Transport transport, WireFormat format, java.util.Map options)
TransportFactorycompositeConfigure in class TransportFactoryprotected boolean isUseInactivityMonitor(Transport transport)
protected Transport createTransport(java.net.URI location, WireFormat wf) throws java.net.UnknownHostException, java.io.IOException
TransportFactorycreateTransport in class TransportFactoryjava.net.UnknownHostExceptionjava.io.IOExceptionprotected TcpTransport createTcpTransport(WireFormat wf, javax.net.SocketFactory socketFactory, java.net.URI location, java.net.URI localLocation) throws java.net.UnknownHostException, java.io.IOException
location - wf - socketFactory - localLocation - java.net.UnknownHostExceptionjava.io.IOExceptionprotected javax.net.ServerSocketFactory createServerSocketFactory() throws java.io.IOException
java.io.IOExceptionprotected javax.net.SocketFactory createSocketFactory() throws java.io.IOException
java.io.IOExceptionprotected Transport createInactivityMonitor(Transport transport, WireFormat format)
Copyright © 2005-2012. All Rights Reserved.