Package com.eventstore.dbclient
Class DeleteStreamOptions
java.lang.Object
com.eventstore.dbclient.DeleteStreamOptions
Options of the delete or tombstone stream request.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticated(UserCredentials credentials) Sets user credentials for the requestauthenticated(String login, String password) Sets user credentials for the requestdeadline(long durationInMs) A length of time (in milliseconds) to use for gRPC deadlines.expectedRevision(long revision) Asks the server to check that the stream receiving is at the given expected version.expectedRevision(ExpectedRevision revision) Asks the server to check that the stream receiving is at the given expected version.static DeleteStreamOptionsget()Returns options with default values.Adds a custom HTTP header that will be added to the request.Do not require the request to be performed by the leader of the cluster.Requires the request to be performed by the leader of the cluster.requiresLeader(boolean value) If true, requires the request to be performed by the leader of the cluster.
-
Method Details
-
get
Returns options with default values. -
expectedRevision
Asks the server to check that the stream receiving is at the given expected version.- Parameters:
revision- - expected revision.- Returns:
- updated options.
-
expectedRevision
Asks the server to check that the stream receiving is at the given expected version.- Parameters:
revision- - expected revision.- Returns:
- updated options.
-
authenticated
Sets user credentials for the request- Parameters:
credentials-- Returns:
- updated options
- See Also:
-
authenticated
Sets user credentials for the request- Parameters:
login-password-- Returns:
- updated options
-
requiresLeader
Requires the request to be performed by the leader of the cluster.- Returns:
- updated options
-
notRequireLeader
Do not require the request to be performed by the leader of the cluster.- Returns:
- updated options
-
requiresLeader
If true, requires the request to be performed by the leader of the cluster.- Parameters:
value-- Returns:
- updated options
-
deadline
A length of time (in milliseconds) to use for gRPC deadlines.- Parameters:
durationInMs-- Returns:
-
header
Adds a custom HTTP header that will be added to the request.
-