public class Markers extends Object
| Constructor and Description |
|---|
Markers() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isReplicatedSubscriptionSnapshotMarker(MessageMetadata msgMetadata) |
static boolean |
isServerOnlyMarker(MessageMetadata msgMetadata) |
static boolean |
isTxnAbortMarker(MessageMetadata msgMetadata) |
static boolean |
isTxnCommitMarker(MessageMetadata msgMetadata) |
static boolean |
isTxnMarker(MessageMetadata msgMetadata) |
static io.netty.buffer.ByteBuf |
newReplicatedSubscriptionsSnapshot(String snapshotId,
String sourceCluster,
long ledgerId,
long entryId,
Map<String,MarkersMessageIdData> clusterIds) |
static io.netty.buffer.ByteBuf |
newReplicatedSubscriptionsSnapshotRequest(String snapshotId,
String sourceCluster) |
static io.netty.buffer.ByteBuf |
newReplicatedSubscriptionsSnapshotResponse(String snapshotId,
String replyToCluster,
String cluster,
long ledgerId,
long entryId) |
static io.netty.buffer.ByteBuf |
newReplicatedSubscriptionsUpdate(String subscriptionName,
Map<String,MarkersMessageIdData> clusterIds) |
static io.netty.buffer.ByteBuf |
newTxnAbortMarker(long sequenceId,
long txnMostBits,
long txnLeastBits) |
static io.netty.buffer.ByteBuf |
newTxnCommitMarker(long sequenceId,
long txnMostBits,
long txnLeastBits) |
static ReplicatedSubscriptionsSnapshot |
parseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload) |
static ReplicatedSubscriptionsSnapshotRequest |
parseReplicatedSubscriptionsSnapshotRequest(io.netty.buffer.ByteBuf payload) |
static ReplicatedSubscriptionsSnapshotResponse |
parseReplicatedSubscriptionsSnapshotResponse(io.netty.buffer.ByteBuf payload) |
static ReplicatedSubscriptionsUpdate |
parseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload) |
public static boolean isServerOnlyMarker(MessageMetadata msgMetadata)
public static boolean isReplicatedSubscriptionSnapshotMarker(MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshotRequest(String snapshotId, String sourceCluster)
public static ReplicatedSubscriptionsSnapshotRequest parseReplicatedSubscriptionsSnapshotRequest(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionpublic static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshotResponse(String snapshotId, String replyToCluster, String cluster, long ledgerId, long entryId)
public static ReplicatedSubscriptionsSnapshotResponse parseReplicatedSubscriptionsSnapshotResponse(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionpublic static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshot(String snapshotId, String sourceCluster, long ledgerId, long entryId, Map<String,MarkersMessageIdData> clusterIds)
public static ReplicatedSubscriptionsSnapshot parseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionpublic static io.netty.buffer.ByteBuf newReplicatedSubscriptionsUpdate(String subscriptionName, Map<String,MarkersMessageIdData> clusterIds)
public static ReplicatedSubscriptionsUpdate parseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload)
public static boolean isTxnCommitMarker(MessageMetadata msgMetadata)
public static boolean isTxnMarker(MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newTxnCommitMarker(long sequenceId,
long txnMostBits,
long txnLeastBits)
public static boolean isTxnAbortMarker(MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newTxnAbortMarker(long sequenceId,
long txnMostBits,
long txnLeastBits)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.