public class CreatePersistentSubscriptionToAllOptions
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 |
checkpointAfter(java.time.Duration value)
The amount of time to try to checkpoint after.
|
T |
checkpointAfterInMs(int value)
The amount of time in milliseconds to try to checkpoint after.
|
T |
checkpointLowerBound(int value)
The minimum number of messages to process before a checkpoint may be written.
|
T |
checkpointUpperBound(int value)
The maximum number of messages not checkpointed before forcing a checkpoint.
|
T |
deadline(long durationInMs)
A length of time (in milliseconds) to use for gRPC deadlines.
|
T |
disableExtraStatistics()
Disable tracking of latency statistics on this subscription.
|
T |
enableExtraStatistics()
Enable tracking of latency statistics on this subscription.
|
T |
extraStatistics(boolean value)
Whether to track latency statistics on this subscription.
|
CreatePersistentSubscriptionToAllOptions |
filter(SubscriptionFilter filter)
Applies a server-side filter to determine if an event of the subscription should be yielded.
|
CreatePersistentSubscriptionToAllOptions |
fromEnd()
Starts the subscription from the end of the $all stream.
|
CreatePersistentSubscriptionToAllOptions |
fromStart()
Starts the subscription from the beginning of the $all stream.
|
static CreatePersistentSubscriptionToAllOptions |
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 |
historyBufferSize(int value)
The number of events to cache when catching up.
|
T |
liveBufferSize(int value)
The size of the buffer (in-memory) listening to live messages as they happen before paging occurs.
|
T |
maxRetryCount(int value)
The maximum number of retries (due to timeout) before a message is considered to be parked.
|
T |
maxSubscriberCount(int value)
The maximum number of subscribers allowed.
|
T |
messageTimeout(java.time.Duration value)
The amount of time after which to consider a message as timed out and retried.
|
T |
messageTimeoutInMs(int value)
The amount of time in milliseconds after which to consider a message as timed out and retried.
|
T |
namedConsumerStrategy(NamedConsumerStrategy value)
The strategy to use for distributing events to client consumers.
|
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 |
readBatchSize(int value)
The number of events read at a time when catching up.
|
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.
|
CreatePersistentSubscriptionToAllOptions |
startFrom(long unsignedPrepare,
long unsignedCommit)
Starts the subscription from the given transaction log position.
|
CreatePersistentSubscriptionToAllOptions |
startFrom(Position position)
Starts the subscription from the given transaction log position.
|
public static CreatePersistentSubscriptionToAllOptions get()
public CreatePersistentSubscriptionToAllOptions filter(SubscriptionFilter filter)
public CreatePersistentSubscriptionToAllOptions fromStart()
public CreatePersistentSubscriptionToAllOptions fromEnd()
public CreatePersistentSubscriptionToAllOptions startFrom(Position position)
position - a transaction log position.Positionpublic CreatePersistentSubscriptionToAllOptions startFrom(long unsignedPrepare, long unsignedCommit)
Positionpublic T resolveLinkTos(boolean value)
public T resolveLinkTos()
public T notResolveLinkTos()
public T enableExtraStatistics()
public T disableExtraStatistics()
public T extraStatistics(boolean value)
public T checkpointAfter(java.time.Duration value)
public T checkpointAfterInMs(int value)
public T historyBufferSize(int value)
public T liveBufferSize(int value)
public T checkpointUpperBound(int value)
public T checkpointLowerBound(int value)
public T maxSubscriberCount(int value)
public T maxRetryCount(int value)
public T messageTimeout(java.time.Duration value)
public T messageTimeoutInMs(int value)
public T readBatchSize(int value)
public T namedConsumerStrategy(NamedConsumerStrategy value)
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)