Class BaseClientSessionImpl

  • All Implemented Interfaces:
    ClientSession, java.io.Closeable, java.lang.AutoCloseable

    public class BaseClientSessionImpl
    extends java.lang.Object
    implements ClientSession
    • Method Detail

      • isCausallyConsistent

        public boolean isCausallyConsistent()
        Description copied from interface: ClientSession
        Returns true if operations in this session must be causally consistent
        Specified by:
        isCausallyConsistent in interface ClientSession
        Returns:
        whether operations in this session must be causally consistent.
      • getOriginator

        public java.lang.Object getOriginator()
        Description copied from interface: ClientSession
        Gets the originator for the session.

        Important because sessions must only be used by their own originator.

        Specified by:
        getOriginator in interface ClientSession
        Returns:
        the sessions originator
      • advanceOperationTime

        public void advanceOperationTime​(BsonTimestamp newOperationTime)
        Description copied from interface: ClientSession
        Set the operation time of the last operation executed in this session.
        Specified by:
        advanceOperationTime in interface ClientSession
        Parameters:
        newOperationTime - the operation time
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ClientSession
        Specified by:
        close in interface java.io.Closeable