public class GridNioRecoveryDescriptor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_NIO_RECOVERY_DESCRIPTOR_RESERVATION_TIMEOUT |
| Constructor and Description |
|---|
GridNioRecoveryDescriptor(boolean pairedConnections,
int queueLimit,
ClusterNode node,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
long |
acked() |
void |
ackReceived(long rcvCnt) |
boolean |
add(SessionWriteRequest req) |
boolean |
connected() |
Long |
handshakeIndex() |
long |
incrementConnectCount() |
long |
lastAcknowledged() |
void |
lastAcknowledged(long lastAck) |
Deque<SessionWriteRequest> |
messagesRequests() |
ClusterNode |
node() |
boolean |
nodeAlive(@Nullable ClusterNode node) |
void |
onConnected() |
void |
onHandshake(long rcvCnt) |
boolean |
onNodeLeft()
Node left callback.
|
long |
onReceived()
Increments received messages counter.
|
boolean |
pairedConnections() |
int |
queueLimit() |
long |
received() |
void |
release() |
boolean |
reserve() |
int |
reserveCount() |
boolean |
reserved() |
long |
sent() |
GridNioSession |
session() |
void |
session(GridNioSession ses) |
String |
toString() |
boolean |
tryReserve(long id,
IgniteInClosure<Boolean> c) |
public static final int DFLT_NIO_RECOVERY_DESCRIPTOR_RESERVATION_TIMEOUT
public GridNioRecoveryDescriptor(boolean pairedConnections,
int queueLimit,
ClusterNode node,
IgniteLogger log)
pairedConnections - True if in/out connections pair is used for communication with node.queueLimit - Maximum size of unacknowledged messages queue.node - Node.log - Logger.public boolean pairedConnections()
True if in/out connections pair is used for communication with node.public long incrementConnectCount()
public ClusterNode node()
public long onReceived()
public long received()
public long sent()
public void lastAcknowledged(long lastAck)
lastAck - Last acknowledged message.public long lastAcknowledged()
public int queueLimit()
public boolean add(SessionWriteRequest req)
req - Write request.False if queue limit is exceeded.public void ackReceived(long rcvCnt)
rcvCnt - Number of messages received by remote node.public long acked()
public boolean onNodeLeft()
False if descriptor is reserved.public Deque<SessionWriteRequest> messagesRequests()
public boolean nodeAlive(@Nullable
@Nullable ClusterNode node)
node - Node.True if node is not null and has the same order as initial remote node.public boolean reserve()
throws InterruptedException
True if reserved.InterruptedException - If interrupted.public void onHandshake(long rcvCnt)
rcvCnt - Number of messages received by remote node.public void onConnected()
public boolean connected()
public boolean reserved()
public Long handshakeIndex()
public void release()
public boolean tryReserve(long id,
IgniteInClosure<Boolean> c)
id - Handshake ID.c - Closure to run on reserve.True if reserved.public int reserveCount()
public GridNioSession session()
public void session(GridNioSession ses)
ses - Session.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021