Class GetProjectionStateOptions

java.lang.Object
com.eventstore.dbclient.GetProjectionStateOptions

public class GetProjectionStateOptions extends Object
Options of the get projection state request.
  • Method Details

    • get

      public static GetProjectionStateOptions get()
      Returns options with default values.
    • partition

      public GetProjectionStateOptions partition(String partition)
      Specifies which partition to retrieve the state from.
    • authenticated

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

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

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

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

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

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

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