Class GeoPersistentReplicator
java.lang.Object
org.apache.pulsar.broker.service.AbstractReplicator
org.apache.pulsar.broker.service.persistent.PersistentReplicator
org.apache.pulsar.broker.service.persistent.GeoPersistentReplicator
- All Implemented Interfaces:
AsyncCallbacks.DeleteCallback
,AsyncCallbacks.ReadEntriesCallback
,MessageExpirer
,Replicator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.broker.service.persistent.PersistentReplicator
PersistentReplicator.ProducerSendCallback
Nested classes/interfaces inherited from class org.apache.pulsar.broker.service.AbstractReplicator
AbstractReplicator.State
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.service.persistent.PersistentReplicator
cursor, dispatchRateLimiter, fetchSchemaInProgress, messageTTLInSeconds, msgExpired, msgOut, PENDING_MESSAGES_UPDATER, topic
Fields inherited from class org.apache.pulsar.broker.service.AbstractReplicator
backOff, brokerService, client, localCluster, localTopic, localTopicName, producer, producerBuilder, producerQueueSize, remoteCluster, remoteTopicName, REPL_PRODUCER_NAME_DELIMITER, replicationClient, replicatorId, replicatorPrefix, STATE_UPDATER
-
Constructor Summary
ConstructorDescriptionGeoPersistentReplicator
(PersistentTopic topic, ManagedCursor cursor, String localCluster, String remoteCluster, BrokerService brokerService, PulsarClientImpl replicationClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected boolean
replicateEntries
(List<Entry> entries) Methods inherited from class org.apache.pulsar.broker.service.persistent.PersistentReplicator
checkReplicatedSubscriptionMarker, clearBacklog, deleteComplete, deleteFailed, disableReplicatorRead, disconnect, disconnect, expireMessages, expireMessages, getCursor, getNumberOfEntriesInBacklog, getRateLimiter, getReplicatorReadPosition, getSchemaInfo, getStats, initializeDispatchRateLimiterIfNeeded, isConnected, peekNthMessage, readEntries, readEntriesComplete, readEntriesFailed, readMoreEntries, skipMessages, updateCursorState, updateMessageTTL, updateRateLimiter, updateRates
Methods inherited from class org.apache.pulsar.broker.service.AbstractReplicator
checkTopicActiveAndRetryStartProducer, closeProducerAsync, getRemoteCluster, getRemoteCluster, getReplicatorName, getState, isLocalTopicActive, isWritable, remove, startProducer, validatePartitionedTopicAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.broker.service.Replicator
getRemoteCluster, startProducer
-
Constructor Details
-
GeoPersistentReplicator
public GeoPersistentReplicator(PersistentTopic topic, ManagedCursor cursor, String localCluster, String remoteCluster, BrokerService brokerService, PulsarClientImpl replicationClient) throws PulsarServerException - Throws:
PulsarServerException
-
-
Method Details
-
getProducerName
- Specified by:
getProducerName
in classAbstractReplicator
- Returns:
- Producer name format : replicatorPrefix.localCluster-->remoteCluster
-
replicateEntries
- Specified by:
replicateEntries
in classPersistentReplicator
-