Package com.eventstore.dbclient
Class ReplayParkedMessagesOptions
- java.lang.Object
-
- com.eventstore.dbclient.ReplayParkedMessagesOptions
-
public class ReplayParkedMessagesOptions extends java.lang.ObjectOptions of the replay parked messages request.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tauthenticated(UserCredentials credentials)Sets user credentials for the requestTauthenticated(java.lang.String login, java.lang.String password)Sets user credentials for the requestTdeadline(long durationInMs)A length of time (in milliseconds) to use for gRPC deadlines.static ReplayParkedMessagesOptionsget()Options with default values.TnotRequireLeader()Do not require the request to be performed by the leader of the cluster.TrequiresLeader()Requires the request to be performed by the leader of the cluster.TrequiresLeader(boolean value)If true, requires the request to be performed by the leader of the cluster.ReplayParkedMessagesOptionsstopAt(long value)Replay the parked messages until the event revision within the parked messages stream is reached.
-
-
-
Method Detail
-
stopAt
public ReplayParkedMessagesOptions stopAt(long value)
Replay the parked messages until the event revision within the parked messages stream is reached.
-
get
public static ReplayParkedMessagesOptions get()
Options with default values.
-
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:
-
-