public class Markers extends Object
| Constructor and Description |
|---|
Markers() |
public static boolean isServerOnlyMarker(PulsarApi.MessageMetadata msgMetadata)
public static boolean isReplicatedSubscriptionSnapshotMarker(PulsarApi.MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshotRequest(String snapshotId, String sourceCluster)
public static PulsarMarkers.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 PulsarMarkers.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,PulsarMarkers.MessageIdData> clusterIds)
public static PulsarMarkers.ReplicatedSubscriptionsSnapshot parseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionpublic static io.netty.buffer.ByteBuf newReplicatedSubscriptionsUpdate(String subscriptionName, Map<String,PulsarMarkers.MessageIdData> clusterIds)
public static PulsarMarkers.ReplicatedSubscriptionsUpdate parseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionpublic static boolean isTxnCommitMarker(PulsarApi.MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newTxnCommitMarker(long sequenceId,
long txnMostBits,
long txnLeastBits,
List<PulsarMarkers.MessageIdData> messageIdDataList)
public static boolean isTxnAbortMarker(PulsarApi.MessageMetadata msgMetadata)
public static io.netty.buffer.ByteBuf newTxnAbortMarker(long sequenceId,
long txnMostBits,
long txnLeastBits,
List<PulsarMarkers.MessageIdData> messageIdDataList)
public static PulsarMarkers.TxnCommitMarker parseCommitMarker(io.netty.buffer.ByteBuf payload) throws IOException
IOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.