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(GridNioMetricsListener metricsLsnr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
async() |
boolean |
close() |
boolean |
closed() |
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() |
boolean |
reserved() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoHandshake, sendMessage, sendMessage, sendMessageprotected final GridNioMetricsListener metricsLsnr
protected GridAbstractCommunicationClient(@Nullable GridNioMetricsListener metricsLsnr)
metricsLsnr - Metrics listener.public 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 boolean reserved()
reserved in interface GridCommunicationClientTrue if client was reserved.public long getIdleTime()
getIdleTime in interface GridCommunicationClientprotected void markUsed()
public boolean async()
async in interface GridCommunicationClientTrue if send is asynchronous.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015