Class Markers
- java.lang.Object
-
- org.apache.pulsar.common.protocol.Markers
-
public class Markers extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Markers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisReplicatedSubscriptionSnapshotMarker(MessageMetadata msgMetadata)static booleanisServerOnlyMarker(MessageMetadata msgMetadata)static booleanisTxnAbortMarker(MessageMetadata msgMetadata)static booleanisTxnCommitMarker(MessageMetadata msgMetadata)static booleanisTxnMarker(MessageMetadata msgMetadata)static io.netty.buffer.ByteBufnewReplicatedSubscriptionsSnapshot(java.lang.String snapshotId, java.lang.String sourceCluster, long ledgerId, long entryId, java.util.Map<java.lang.String,MarkersMessageIdData> clusterIds)static io.netty.buffer.ByteBufnewReplicatedSubscriptionsSnapshotRequest(java.lang.String snapshotId, java.lang.String sourceCluster)static io.netty.buffer.ByteBufnewReplicatedSubscriptionsSnapshotResponse(java.lang.String snapshotId, java.lang.String replyToCluster, java.lang.String cluster, long ledgerId, long entryId)static io.netty.buffer.ByteBufnewReplicatedSubscriptionsUpdate(java.lang.String subscriptionName, java.util.Map<java.lang.String,MarkersMessageIdData> clusterIds)static io.netty.buffer.ByteBufnewTxnAbortMarker(long sequenceId, long txnMostBits, long txnLeastBits)static io.netty.buffer.ByteBufnewTxnCommitMarker(long sequenceId, long txnMostBits, long txnLeastBits)static ReplicatedSubscriptionsSnapshotparseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload)static ReplicatedSubscriptionsSnapshotRequestparseReplicatedSubscriptionsSnapshotRequest(io.netty.buffer.ByteBuf payload)static ReplicatedSubscriptionsSnapshotResponseparseReplicatedSubscriptionsSnapshotResponse(io.netty.buffer.ByteBuf payload)static ReplicatedSubscriptionsUpdateparseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload)
-
-
-
Method Detail
-
isServerOnlyMarker
public static boolean isServerOnlyMarker(MessageMetadata msgMetadata)
-
isReplicatedSubscriptionSnapshotMarker
public static boolean isReplicatedSubscriptionSnapshotMarker(MessageMetadata msgMetadata)
-
newReplicatedSubscriptionsSnapshotRequest
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshotRequest(java.lang.String snapshotId, java.lang.String sourceCluster)
-
parseReplicatedSubscriptionsSnapshotRequest
public static ReplicatedSubscriptionsSnapshotRequest parseReplicatedSubscriptionsSnapshotRequest(io.netty.buffer.ByteBuf payload) throws java.io.IOException
- Throws:
java.io.IOException
-
newReplicatedSubscriptionsSnapshotResponse
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshotResponse(java.lang.String snapshotId, java.lang.String replyToCluster, java.lang.String cluster, long ledgerId, long entryId)
-
parseReplicatedSubscriptionsSnapshotResponse
public static ReplicatedSubscriptionsSnapshotResponse parseReplicatedSubscriptionsSnapshotResponse(io.netty.buffer.ByteBuf payload) throws java.io.IOException
- Throws:
java.io.IOException
-
newReplicatedSubscriptionsSnapshot
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshot(java.lang.String snapshotId, java.lang.String sourceCluster, long ledgerId, long entryId, java.util.Map<java.lang.String,MarkersMessageIdData> clusterIds)
-
parseReplicatedSubscriptionsSnapshot
public static ReplicatedSubscriptionsSnapshot parseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload) throws java.io.IOException
- Throws:
java.io.IOException
-
newReplicatedSubscriptionsUpdate
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsUpdate(java.lang.String subscriptionName, java.util.Map<java.lang.String,MarkersMessageIdData> clusterIds)
-
parseReplicatedSubscriptionsUpdate
public static ReplicatedSubscriptionsUpdate parseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload)
-
isTxnCommitMarker
public static boolean isTxnCommitMarker(MessageMetadata msgMetadata)
-
isTxnMarker
public static boolean isTxnMarker(MessageMetadata msgMetadata)
-
newTxnCommitMarker
public static io.netty.buffer.ByteBuf newTxnCommitMarker(long sequenceId, long txnMostBits, long txnLeastBits)
-
isTxnAbortMarker
public static boolean isTxnAbortMarker(MessageMetadata msgMetadata)
-
newTxnAbortMarker
public static io.netty.buffer.ByteBuf newTxnAbortMarker(long sequenceId, long txnMostBits, long txnLeastBits)
-
-