Class DeleteProjectionOptions

java.lang.Object
com.eventstore.dbclient.DeleteProjectionOptions

public class DeleteProjectionOptions extends Object
Options of the delete projection request.
  • Method Details

    • get

      public static DeleteProjectionOptions get()
      Returns options with default values.
    • deleteEmittedStreams

      public DeleteProjectionOptions deleteEmittedStreams()
      Deletes emitted streams if the projections had track emitted streams enabled.
    • deleteStateStream

      public DeleteProjectionOptions deleteStateStream()
      Deletes the projection state stream.
    • deleteCheckpointStream

      public DeleteProjectionOptions deleteCheckpointStream()
      Deletes the projection checkpoint stream.
    • deleteEmittedStreams

      public DeleteProjectionOptions deleteEmittedStreams(boolean delete)
      If true, deletes emitted streams if the projections had track emitted streams enabled.
    • deleteStateStream

      public DeleteProjectionOptions deleteStateStream(boolean delete)
      If true, deletes the projection state stream.
    • deleteCheckpointStream

      public DeleteProjectionOptions deleteCheckpointStream(boolean delete)
      If true, deletes the projection checkpoint stream.
    • authenticated

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

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

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

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

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

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

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