Package com.eventstore.dbclient
Class PersistentSubscriptionSettingsBuilder
- java.lang.Object
-
- com.eventstore.dbclient.AbstractPersistentSubscriptionSettingsBuilder<PersistentSubscriptionSettingsBuilder>
-
- com.eventstore.dbclient.PersistentSubscriptionSettingsBuilder
-
public class PersistentSubscriptionSettingsBuilder extends AbstractPersistentSubscriptionSettingsBuilder<PersistentSubscriptionSettingsBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected StreamRevisionrevision-
Fields inherited from class com.eventstore.dbclient.AbstractPersistentSubscriptionSettingsBuilder
checkpointAfterMs, checkPointLowerBound, checkPointUpperBound, consumerStrategyName, extraStatistics, historyBufferSize, liveBufferSize, maxRetryCount, maxSubscriberCount, messageTimeoutMs, readBatchSize, resolveLinkTos
-
-
Constructor Summary
Constructors Constructor Description PersistentSubscriptionSettingsBuilder()PersistentSubscriptionSettingsBuilder(PersistentSubscriptionSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PersistentSubscriptionSettingsbuild()PersistentSubscriptionSettingsBuilderfromEnd()PersistentSubscriptionSettingsBuilderfromStart()PersistentSubscriptionSettingsBuilderfromStreamStart()Deprecated.preferfromStart()PersistentSubscriptionSettingsBuilderrevision(long value)Deprecated.preferstartFrom(long)PersistentSubscriptionSettingsBuilderstartFrom(long value)The exclusive position in the stream or transaction file the subscription should start from.PersistentSubscriptionSettingsBuilderstartFrom(StreamRevision value)The exclusive position in the stream or transaction file the subscription should start from.-
Methods inherited from class com.eventstore.dbclient.AbstractPersistentSubscriptionSettingsBuilder
checkpointAfter, checkpointAfterInMs, checkPointLowerBound, checkPointUpperBound, consumerStrategy, disableExtraStatistics, disableLinkResolution, enableExtraStatistics, enableLinkResolution, extraStatistics, historyBufferSize, liveBufferSize, maxCheckpointCount, maxRetryCount, maxSubscriberCount, messageTimeout, messageTimeoutInMs, minCheckpointCount, namedConsumerStrategy, notResolveLinkTos, readBatchSize, resolveLinks, resolveLinkTos, resolveLinkTos
-
-
-
-
Field Detail
-
revision
protected StreamRevision revision
-
-
Constructor Detail
-
PersistentSubscriptionSettingsBuilder
public PersistentSubscriptionSettingsBuilder()
-
PersistentSubscriptionSettingsBuilder
public PersistentSubscriptionSettingsBuilder(PersistentSubscriptionSettings settings)
-
-
Method Detail
-
build
public PersistentSubscriptionSettings build()
-
fromStart
public PersistentSubscriptionSettingsBuilder fromStart()
-
fromEnd
public PersistentSubscriptionSettingsBuilder fromEnd()
-
startFrom
public PersistentSubscriptionSettingsBuilder startFrom(long value)
The exclusive position in the stream or transaction file the subscription should start from. Default: End of stream.
-
startFrom
public PersistentSubscriptionSettingsBuilder startFrom(StreamRevision value)
The exclusive position in the stream or transaction file the subscription should start from. Default: End of stream.
-
revision
@Deprecated public PersistentSubscriptionSettingsBuilder revision(long value)
Deprecated.preferstartFrom(long)
-
fromStreamStart
@Deprecated public PersistentSubscriptionSettingsBuilder fromStreamStart()
Deprecated.preferfromStart()
-
-