public abstract class GridAbstractCommunicationClient extends Object implements GridCommunicationClient
| Modifier and Type | Field and Description |
|---|---|
protected GridNioMetricsListener |
metricsLsnr
Metrics listener.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridAbstractCommunicationClient(int connIdx,
GridNioMetricsListener metricsLsnr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
async() |
boolean |
close() |
boolean |
closed() |
int |
connectionIndex() |
void |
forceClose()
Forces client close.
|
long |
getIdleTime()
Gets idle time of this client.
|
protected void |
markUsed()
Updates used time.
|
void |
release()
Releases this client by decreasing reservations.
|
boolean |
reserve() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoHandshake, sendMessage, sendMessage, sendMessageprotected final GridNioMetricsListener metricsLsnr
protected GridAbstractCommunicationClient(int connIdx,
@Nullable
GridNioMetricsListener metricsLsnr)
connIdx - Connection index.metricsLsnr - Metrics listener.public int connectionIndex()
connectionIndex in interface GridCommunicationClientpublic boolean close()
close in interface GridCommunicationClientTrue if client has been closed by this call,
false if failed to close client (due to concurrent reservation or concurrent close).public void forceClose()
forceClose in interface GridCommunicationClientpublic boolean closed()
closed in interface GridCommunicationClientTrue if client is closed;public boolean reserve()
reserve in interface GridCommunicationClientTrue if client was reserved, false otherwise.public void release()
release in interface GridCommunicationClientpublic long getIdleTime()
getIdleTime in interface GridCommunicationClientprotected void markUsed()
public boolean async()
async in interface GridCommunicationClientTrue if send is asynchronous.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017