Package com.eventstore.dbclient
Class RestartProjectionSubsystemOptions
java.lang.Object
com.eventstore.dbclient.RestartProjectionSubsystemOptions
Options of the restart projection subsystem 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.get()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
Options with default values. -
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.
-