public ClientSession startSession ( final ClientSessionOptions options ) { ClientSession clientSession = createClientSession ( notNull ( "options" , options ) ) ; if ( clientSession == null ) { throw new MongoClientException ( "Sessions are not supported by the MongoDB cluster to which this client is connected" ) ; } return clientSession ; }
Creates a client session .