Package com.epam.common.transport.client
Interface ClientTransport
- All Superinterfaces:
Transport
- All Known Implementing Classes:
NIOTCPTransport
,SSLTCPTransport
,TCPTransport
,UDPTransport
Client transport interface.
Describes contract of server configuration.
-
Method Summary
Modifier and TypeMethodDescriptionint
read
(ByteBuffer buffer) int
read
(ByteBuffer buffer, int offset, int length) void
setAddress
(String host) Setter for address.void
setPort
(int port) Setter for port.void
setSocketFactory
(SocketFactory socketFactory) int
write
(ByteBuffer buffer) int
write
(ByteBuffer buffer, int offset, int length) Methods inherited from interface com.epam.common.transport.Transport
close, getAddress, getInetAddress, getLocalPort, getPort, getSSLCertificates, getSSLCipherSuite, getSSLProtocol, isBlockingSocket, isOpen, open, read, read, waitUntilReadyToWrite, write, write
-
Method Details
-
setAddress
Setter for address.- Parameters:
host
-
-
setPort
void setPort(int port) Setter for port.- Parameters:
port
-
-
write
- Specified by:
write
in interfaceTransport
- Throws:
IOException
-
write
- Specified by:
write
in interfaceTransport
- Throws:
IOException
-
read
- Specified by:
read
in interfaceTransport
- Throws:
IOException
-
read
- Specified by:
read
in interfaceTransport
- Throws:
IOException
-
setSocketFactory
-