final class ServerSessionPool.ServerSessionImpl extends java.lang.Object implements ServerSession
Modifier and Type | Field and Description |
---|---|
private boolean |
closed |
private BsonDocument |
identifier |
private long |
lastUsedAtMillis |
private int |
transactionNumber |
Constructor and Description |
---|
ServerSessionImpl(BsonBinary identifier) |
Modifier and Type | Method and Description |
---|---|
long |
advanceTransactionNumber()
Return the next available transaction number.
|
(package private) void |
close() |
BsonDocument |
getIdentifier() |
(package private) long |
getLastUsedAtMillis() |
(package private) int |
getTransactionNumber() |
boolean |
isClosed()
Whether the server session is closed.
|
private final BsonDocument identifier
private int transactionNumber
private volatile long lastUsedAtMillis
private volatile boolean closed
ServerSessionImpl(BsonBinary identifier)
void close()
long getLastUsedAtMillis()
int getTransactionNumber()
public BsonDocument getIdentifier()
getIdentifier
in interface ServerSession
public long advanceTransactionNumber()
ServerSession
advanceTransactionNumber
in interface ServerSession
public boolean isClosed()
ServerSession
isClosed
in interface ServerSession