Package com.eventstore.dbclient
Class CreateProjectionOptions
- java.lang.Object
-
- com.eventstore.dbclient.CreateProjectionOptions
-
public class CreateProjectionOptions extends java.lang.Object
Options for create projection request.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
authenticated(UserCredentials credentials)
Sets user credentials for the requestT
authenticated(java.lang.String login, java.lang.String password)
Sets user credentials for the requestT
deadline(long durationInMs)
A length of time (in milliseconds) to use for gRPC deadlines.CreateProjectionOptions
emitEnabled(boolean value)
If true, allows the projection to emit events.static CreateProjectionOptions
get()
Returns options with default values.T
notRequireLeader()
Do not require the request to be performed by the leader of the cluster.T
requiresLeader()
Requires the request to be performed by the leader of the cluster.T
requiresLeader(boolean value)
If true, requires the request to be performed by the leader of the cluster.CreateProjectionOptions
trackEmittedStreams(boolean trackEmittedStreams)
If true, the projection tracks all streams it creates.
-
-
-
Method Detail
-
get
public static CreateProjectionOptions get()
Returns options with default values.
-
trackEmittedStreams
public CreateProjectionOptions trackEmittedStreams(boolean trackEmittedStreams)
If true, the projection tracks all streams it creates.
-
emitEnabled
public CreateProjectionOptions emitEnabled(boolean value)
If true, allows the projection to emit events.
-
authenticated
public T authenticated(UserCredentials credentials)
Sets user credentials for the request- Parameters:
credentials
-- Returns:
- updated options
- See Also:
UserCredentials
-
authenticated
public T authenticated(java.lang.String login, java.lang.String password)
Sets user credentials for the request- Parameters:
login
-password
-- Returns:
- updated options
-
requiresLeader
public T requiresLeader()
Requires the request to be performed by the leader of the cluster.- Returns:
- updated options
-
notRequireLeader
public T notRequireLeader()
Do not require the request to be performed by the leader of the cluster.- Returns:
- updated options
-
requiresLeader
public T requiresLeader(boolean value)
If true, requires the request to be performed by the leader of the cluster.- Parameters:
value
-- Returns:
- updated options
-
deadline
public T deadline(long durationInMs)
A length of time (in milliseconds) to use for gRPC deadlines.- Parameters:
durationInMs
-- Returns:
-
-