public class SeekOperation extends Object
| Constructor and Description |
|---|
SeekOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
seekMessages(PubSubConfiguration config,
PubSubConnection connection,
SubscriptionIdentifier subscriptionIdentifier,
SeekTarget seekTarget)
Supports bulk acknowledging or un-acknowledging of messages to given snapshot or point of time based on the seekTarget provided.
|
@Throws(value=CommonErrorTypeProvider.class) @Summary(value="Replay or purge messages from selected snapshot or time") public void seekMessages(@Config PubSubConfiguration config, @Connection PubSubConnection connection, @ParameterGroup(name="Subscription settings") SubscriptionIdentifier subscriptionIdentifier, @ParameterGroup(name="Seek target") SeekTarget seekTarget)
Seeking to a time marks every message received by Pub/Sub before the time as acknowledged, and all messages received after the time as unacknowledged. That means that you can replay and reprocess previously acknowledged messages when seeking to a time in past or purge messages by seeking to a time in the future. NOTE: If you seek to a timestamp using a subscription with a filter, the Pub/Sub service only redelivers the messages that match the filter
The snapshot feature allows you to capture the message acknowledgment state of a subscription. Once a snapshot is created, it retains:
config - configurationconnection - connectionsubscriptionIdentifier - Identifier of the subscription containing subscriptionName and projectIdseekTarget - Target of the seek operation either a snapshot or specific timeCopyright © 2021 MuleSoft, Inc.. All rights reserved.