public class TcpTransportFactory extends TransportFactory
| Constructor and Description |
|---|
TcpTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
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 ServerSocketFactory |
createServerSocketFactory() |
protected SocketFactory |
createSocketFactory() |
protected TcpTransport |
createTcpTransport(WireFormat wf,
SocketFactory socketFactory,
URI location,
URI localLocation)
Allows subclasses of TcpTransportFactory to provide a create custom
TcpTransport instances.
|
protected TcpTransportServer |
createTcpTransportServer(URI location,
ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransportServer.
|
protected Transport |
createTransport(URI location,
WireFormat wf)
Factory method to create a new transport
|
TcpTransport |
createTransport(WireFormat wireFormat,
Socket socket,
SSLEngine engine,
TcpTransport.InitBuffer initBuffer,
ByteBuffer inputBuffer) |
TcpTransport |
createTransport(WireFormat wireFormat,
Socket socket,
TcpTransport.InitBuffer initBuffer) |
TransportServer |
doBind(URI location) |
protected boolean |
isUseInactivityMonitor(Transport transport) |
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigurepublic TcpTransportFactory()
public TransportServer doBind(URI location) throws IOException
doBind in class TransportFactoryIOExceptionprotected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
location - serverSocketFactory - IOExceptionURISyntaxExceptionpublic Transport compositeConfigure(Transport transport, WireFormat format, Map options)
TransportFactorycompositeConfigure in class TransportFactoryprotected boolean isUseInactivityMonitor(Transport transport)
protected Transport createTransport(URI location, WireFormat wf) throws UnknownHostException, IOException
TransportFactorycreateTransport in class TransportFactoryUnknownHostExceptionIOExceptionpublic TcpTransport createTransport(WireFormat wireFormat, Socket socket, TcpTransport.InitBuffer initBuffer) throws IOException
IOExceptionpublic TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException
IOExceptionprotected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException
wf - socketFactory - location - localLocation - UnknownHostExceptionIOExceptionprotected ServerSocketFactory createServerSocketFactory() throws IOException
IOExceptionprotected SocketFactory createSocketFactory() throws IOException
IOExceptionprotected Transport createInactivityMonitor(Transport transport, WireFormat format)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.