Package com.mongodb.session
Interface ServerSession
-
@Deprecated(since="2021-05-27") public interface ServerSessionDeprecated.Usage of this API is not supported in AEM as a Cloud Service.A MongoDB server session.- Since:
- 3.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description longadvanceTransactionNumber()Deprecated.Return the next available transaction number.BsonDocumentgetIdentifier()Deprecated.longgetTransactionNumber()Deprecated.Gets the current transaction number.booleanisClosed()Deprecated.Whether the server session is closed.booleanisMarkedDirty()Deprecated.Whether the server session is marked dirty.voidmarkDirty()Deprecated.Mark the server session as dirty.
-
-
-
Method Detail
-
getIdentifier
BsonDocument getIdentifier()
Deprecated.- Returns:
- the server session identifier
-
getTransactionNumber
long getTransactionNumber()
Deprecated.Gets the current transaction number.- Returns:
- the current transaction number
- Since:
- 3.8
-
advanceTransactionNumber
long advanceTransactionNumber()
Deprecated.Return the next available transaction number.- Returns:
- the next transaction number
-
isClosed
boolean isClosed()
Deprecated.Whether the server session is closed.- Returns:
- true if the session has been closed
-
markDirty
void markDirty()
Deprecated.Mark the server session as dirty. A server session is marked dirty when a command fails with a network error. Dirty sessions are later discarded from the server session pool.- Since:
- 3.12
-
isMarkedDirty
boolean isMarkedDirty()
Deprecated.Whether the server session is marked dirty.- Returns:
- true if the session has been marked dirty
- Since:
- 3.12
-
-