Class ResetProjectionOptions

java.lang.Object
com.eventstore.dbclient.ResetProjectionOptions

public class ResetProjectionOptions extends Object
Options of the reset projection request.
  • Method Details

    • get

      public static ResetProjectionOptions get()
      Options with default values.
    • authenticated

      public ResetProjectionOptions authenticated(UserCredentials credentials)
      Sets user credentials for the request
      Parameters:
      credentials -
      Returns:
      updated options
      See Also:
    • authenticated

      public ResetProjectionOptions authenticated(String login, String password)
      Sets user credentials for the request
      Parameters:
      login -
      password -
      Returns:
      updated options
    • requiresLeader

      public ResetProjectionOptions requiresLeader()
      Requires the request to be performed by the leader of the cluster.
      Returns:
      updated options
    • notRequireLeader

      public ResetProjectionOptions notRequireLeader()
      Do not require the request to be performed by the leader of the cluster.
      Returns:
      updated options
    • requiresLeader

      public ResetProjectionOptions requiresLeader(boolean value)
      If true, requires the request to be performed by the leader of the cluster.
      Parameters:
      value -
      Returns:
      updated options
    • deadline

      public ResetProjectionOptions deadline(long durationInMs)
      A length of time (in milliseconds) to use for gRPC deadlines.
      Parameters:
      durationInMs -
      Returns:
    • header

      public ResetProjectionOptions header(String key, String value)
      Adds a custom HTTP header that will be added to the request.