Package com.eventstore.dbclient
Class CreateProjectionOptions
java.lang.Object
com.eventstore.dbclient.CreateProjectionOptions
Options for create projection 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.emitEnabled(boolean value) If true, allows the projection to emit events.static CreateProjectionOptionsget()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.trackEmittedStreams(boolean trackEmittedStreams) If true, the projection tracks all streams it creates.
-
Method Details
-
get
Returns options with default values. -
trackEmittedStreams
If true, the projection tracks all streams it creates. -
emitEnabled
If true, allows the projection to emit events. -
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.
-