Class UserExistsOperation

  • All Implemented Interfaces:
    >, >

    public class UserExistsOperation
    extends 
    implements >, >
    Deprecated.
    use CommandWriteOperation directly or the mongod shell helpers.
    An operation that determines if a user exists.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
       databaseName,  userName)
      Deprecated.
      Construct a new instance.
    • Constructor Detail

      • UserExistsOperation

        public UserExistsOperation​( databaseName,
                                    userName)
        Deprecated.
        Construct a new instance.
        Parameters:
        databaseName - the name of the database for the operation.
        userName - the name of the user to check if they exist.
    • Method Detail

      • retryReads

        public UserExistsOperation retryReads​(boolean retryReads)
        Deprecated.
        Enables retryable reads if a read fails due to a network error.
        Parameters:
        retryReads - true if reads should be retried
        Returns:
        this
        Since:
        3.11
      • getRetryReads

        public boolean getRetryReads()
        Deprecated.
        Gets the value for retryable reads. The default is true.
        Returns:
        the retryable reads value
        Since:
        3.11
      • execute

        public  execute​(ReadBinding binding)
        Deprecated.
        Description copied from interface: ReadOperation
        General execute which can return anything of type T
        Specified by:
        >
        Parameters:
        binding - the binding to execute in the context of
        Returns:
        T, the result of the execution
      • executeAsync

        public void executeAsync​(AsyncReadBinding binding,
                                 > callback)
        Deprecated.
        Description copied from interface: AsyncReadOperation
        General execute which can return anything of type T
        Specified by:
        >
        Parameters:
        binding - the binding to execute in the context of
        callback - the callback to be called when the operation has been executed