Class LearnerMaster
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.LearnerMaster
-
- Direct Known Subclasses:
Leader,ObserverMaster
public abstract class LearnerMaster extends Object
interface for keeping Observers in sync
-
-
Constructor Summary
Constructors Constructor Description LearnerMaster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LearnerSyncThrottlergetLearnerDiffSyncThrottler()diff sync throttlerLearnerSyncThrottlergetLearnerSnapSyncThrottler()snap sync throttlerintgetMaxConcurrentDiffSyncs()intgetMaxConcurrentSnapSyncs()voidsetMaxConcurrentDiffSyncs(int maxConcurrentDiffSyncs)voidsetMaxConcurrentSnapSyncs(int maxConcurrentSnapSyncs)
-
-
-
Method Detail
-
getMaxConcurrentSnapSyncs
public int getMaxConcurrentSnapSyncs()
-
setMaxConcurrentSnapSyncs
public void setMaxConcurrentSnapSyncs(int maxConcurrentSnapSyncs)
-
getMaxConcurrentDiffSyncs
public int getMaxConcurrentDiffSyncs()
-
setMaxConcurrentDiffSyncs
public void setMaxConcurrentDiffSyncs(int maxConcurrentDiffSyncs)
-
getLearnerSnapSyncThrottler
public LearnerSyncThrottler getLearnerSnapSyncThrottler()
snap sync throttler- Returns:
- snapshot throttler
-
getLearnerDiffSyncThrottler
public LearnerSyncThrottler getLearnerDiffSyncThrottler()
diff sync throttler- Returns:
- diff throttler
-
-