public class SubscribeToAllOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
T |
authenticated(java.lang.String login,
java.lang.String password)
Sets user credentials for the request
|
T |
authenticated(UserCredentials credentials)
Sets user credentials for the request
|
T |
batchSize(int batchSize)
The maximum number of events to read from the server at the time.
|
T |
deadline(long durationInMs)
A length of time (in milliseconds) to use for gRPC deadlines.
|
SubscribeToAllOptions |
filter(SubscriptionFilter filter)
Applies a server-side filter to determine if an event of the subscription should be yielded.
|
T |
fromEnd()
Starts from the end of the $all stream.
|
T |
fromPosition(Position position)
Starts from the given transaction log position.
|
T |
fromStart()
Starts from the beginning of the $all stream.
|
static SubscribeToAllOptions |
get()
Returns options with default values.
|
T |
header(java.lang.String key,
java.lang.String value)
Adds a custom HTTP header that will be added to the request.
|
T |
notRequireLeader()
Do not require the request to be performed by the leader of the cluster.
|
T |
notResolveLinkTos()
Don't resolve linkTo events to their linked events.
|
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.
|
T |
resolveLinkTos()
Resolve linkTo events to their linked events.
|
T |
resolveLinkTos(boolean value)
Whether the subscription should resolve linkTo events to their linked events.
|
T |
thresholdRatio(float ratio)
The ratio of the batch size at which more events should be requested from the server.
|
public static SubscribeToAllOptions get()
public SubscribeToAllOptions filter(SubscriptionFilter filter)
public T fromStart()
public T fromEnd()
public T fromPosition(Position position)
position - transaction log position.public T batchSize(int batchSize)
public T thresholdRatio(float ratio)
public T resolveLinkTos(boolean value)
public T resolveLinkTos()
public T notResolveLinkTos()
public T authenticated(UserCredentials credentials)
credentials - UserCredentialspublic T authenticated(java.lang.String login,
java.lang.String password)
login - password - public T requiresLeader()
public T notRequireLeader()
public T requiresLeader(boolean value)
value - public T deadline(long durationInMs)
durationInMs - public T header(java.lang.String key,
java.lang.String value)