Class Markers
java.lang.Object
org.apache.pulsar.common.protocol.Markers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) parseReplicatedSubscriptionsSnapshot
(io.netty.buffer.ByteBuf payload) parseReplicatedSubscriptionsSnapshotRequest
(io.netty.buffer.ByteBuf payload) parseReplicatedSubscriptionsSnapshotResponse
(io.netty.buffer.ByteBuf payload) parseReplicatedSubscriptionsUpdate
(io.netty.buffer.ByteBuf payload)
-
Constructor Details
-
Markers
public Markers()
-
-
Method Details
-
isServerOnlyMarker
-
isReplicatedSubscriptionSnapshotMarker
-
newReplicatedSubscriptionsSnapshotRequest
-
parseReplicatedSubscriptionsSnapshotRequest
public static ReplicatedSubscriptionsSnapshotRequest parseReplicatedSubscriptionsSnapshotRequest(io.netty.buffer.ByteBuf payload) throws IOException - Throws:
IOException
-
newReplicatedSubscriptionsSnapshotResponse
-
parseReplicatedSubscriptionsSnapshotResponse
public static ReplicatedSubscriptionsSnapshotResponse parseReplicatedSubscriptionsSnapshotResponse(io.netty.buffer.ByteBuf payload) throws IOException - Throws:
IOException
-
newReplicatedSubscriptionsSnapshot
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsSnapshot(String snapshotId, String sourceCluster, long ledgerId, long entryId, Map<String, MarkersMessageIdData> clusterIds) -
parseReplicatedSubscriptionsSnapshot
public static ReplicatedSubscriptionsSnapshot parseReplicatedSubscriptionsSnapshot(io.netty.buffer.ByteBuf payload) throws IOException - Throws:
IOException
-
newReplicatedSubscriptionsUpdate
public static io.netty.buffer.ByteBuf newReplicatedSubscriptionsUpdate(String subscriptionName, Map<String, MarkersMessageIdData> clusterIds) -
parseReplicatedSubscriptionsUpdate
public static ReplicatedSubscriptionsUpdate parseReplicatedSubscriptionsUpdate(io.netty.buffer.ByteBuf payload) -
isTxnCommitMarker
-
isTxnMarker
-
newTxnCommitMarker
public static io.netty.buffer.ByteBuf newTxnCommitMarker(long sequenceId, long txnMostBits, long txnLeastBits) -
isTxnAbortMarker
-
newTxnAbortMarker
public static io.netty.buffer.ByteBuf newTxnAbortMarker(long sequenceId, long txnMostBits, long txnLeastBits)
-