public class IpcClientTcpEndpoint extends Object implements IpcEndpoint
| Constructor and Description |
|---|
IpcClientTcpEndpoint(Socket clientSock)
Creates connected client IPC endpoint.
|
IpcClientTcpEndpoint(String host,
int port)
Creates and connects client IPC endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes endpoint.
|
InputStream |
inputStream()
Gets input stream associated with this IPC endpoint.
|
OutputStream |
outputStream()
Gets output stream associated with this IPC endpoint.
|
int |
timeout()
Returns socket timeout.
|
void |
timeout(int ms)
Enable/disable socket timeout with specified timeout.
|
public IpcClientTcpEndpoint(Socket clientSock)
clientSock - Connected client socket.public IpcClientTcpEndpoint(String host, int port) throws IgniteCheckedException
port - Port.host - Host.IgniteCheckedException - If connection fails.public InputStream inputStream() throws IgniteCheckedException
inputStream in interface IpcEndpointIgniteCheckedException - If error occurred.public OutputStream outputStream() throws IgniteCheckedException
outputStream in interface IpcEndpointIgniteCheckedException - If error occurred.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface IpcEndpointpublic void timeout(int ms)
throws SQLException
ms - the specified timeout, in milliseconds.SQLException - if there is an error in the underlying protocol.public int timeout()
throws SQLException
SQLException - if there is an error in the underlying protocol.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021