public interface GridCommunicationClient
| Modifier and Type | Method and Description |
|---|---|
boolean |
async() |
boolean |
close() |
boolean |
closed() |
int |
connectionIndex() |
void |
doHandshake(IgniteInClosure2X<InputStream,OutputStream> handshakeC)
Executes the given handshake closure on opened client passing underlying IO streams.
|
void |
forceClose()
Forces client close.
|
long |
getIdleTime()
Gets idle time of this client.
|
void |
release()
Releases this client by decreasing reservations.
|
boolean |
reserve() |
void |
sendMessage(byte[] data,
int len) |
void |
sendMessage(ByteBuffer data) |
boolean |
sendMessage(UUID nodeId,
Message msg,
IgniteInClosure<IgniteException> c) |
void doHandshake(IgniteInClosure2X<InputStream,OutputStream> handshakeC) throws IgniteCheckedException
handshakeC - Handshake.IgniteCheckedException - If handshake failed.boolean close()
True if client has been closed by this call,
false if failed to close client (due to concurrent reservation or concurrent close).void forceClose()
boolean closed()
True if client is closed;boolean reserve()
True if client was reserved, false otherwise.void release()
long getIdleTime()
void sendMessage(ByteBuffer data) throws IgniteCheckedException
data - Data to send.IgniteCheckedException - If failed.void sendMessage(byte[] data,
int len)
throws IgniteCheckedException
data - Data to send.len - Length.IgniteCheckedException - If failed.boolean sendMessage(@Nullable
UUID nodeId,
Message msg,
@Nullable
IgniteInClosure<IgniteException> c)
throws IgniteCheckedException
nodeId - Remote node ID. Provided only for sync clients.msg - Message to send.c - Ack closure.True if should try to resend message.IgniteCheckedException - If failed.boolean async()
True if send is asynchronous.int connectionIndex()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017