@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()
ReplayStrategystatic 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 fromReplayStrategystatic ReplayStrategy timeBased(Date replayStartDate, String zoneId)
replayStartDate - the starting point of the replyzoneId - the timezone, compatible with ZoneId.of(String)ReplayStrategystatic ReplayStrategy timeBased(ZonedDateTime replayStartDate)
replayStartDate - the starting point for the message replay to start fromReplayStrategyCopyright 2019-2025 Solace Corporation. All rights reserved.