@ProviderType
public interface ReplayStrategy
Modifier and Type | Method and Description |
---|---|
static ReplayStrategy |
allMessages()
Creates a replay strategy for all available messages.
|
static ReplayStrategy |
replicationGroupMessageIdBased(InboundMessage.ReplicationGroupMessageId replicationGroupMessageId)
Factory method to create replay strategy based replication group message Id.
|
static ReplayStrategy |
timeBased(Date replayStartDate,
String zoneId)
Create time-based replay strategy based on the start time and timezone.
|
static ReplayStrategy |
timeBased(ZonedDateTime replayStartDate)
Factory method to create time based replay strategy based on start time.
|
static ReplayStrategy allMessages()
ReplayStrategy
static ReplayStrategy replicationGroupMessageIdBased(InboundMessage.ReplicationGroupMessageId replicationGroupMessageId)
There are two ways to acquire InboundMessage.ReplicationGroupMessageId
for this method:
InboundMessage.getReplicationGroupMessageId()
InboundMessage.ReplicationGroupMessageId#of(String)
based on previously received message
replicationGroupMessageId
- the starting point for the message replay to start fromReplayStrategy
static ReplayStrategy timeBased(Date replayStartDate, String zoneId)
replayStartDate
- the starting point of the replyzoneId
- the timezone, compatible with ZoneId.of(String)
ReplayStrategy
static ReplayStrategy timeBased(ZonedDateTime replayStartDate)
replayStartDate
- the starting point for the message replay to start fromReplayStrategy
Copyright 2019-2024 Solace Corporation. All rights reserved.