Package io.bytestreams.exchange.core
Class ClientSocketTransportFactory
java.lang.Object
io.bytestreams.exchange.core.ClientSocketTransportFactory
- All Implemented Interfaces:
TransportFactory
A
TransportFactory that creates client-side TCP connections.
Each call to create() opens a new Socket to the configured host and port,
applies the SocketConfigurator, connects, and returns a SocketTransport.
Use builder(String, int) to configure the target address, connect timeout, and socket
options.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
builder
-
create
Description copied from interface:TransportFactoryCreates a new transport.- Specified by:
createin interfaceTransportFactory- Returns:
- the new transport
- Throws:
IOException- if the transport cannot be created
-