Interface CompactionSegmentManagement
- 
- All Known Subinterfaces:
- LeveldbCompaction,- LeveldbStore
 - All Known Implementing Classes:
- SharedLeveldbStore
 
 public interface CompactionSegmentManagementINTERNAL API.Calculates and stores info of compacted "segments" per persistence id. Assuming a compaction interval N for a given persistence id, then compaction is to be performed for segments of message sequence numbers according to the following pattern: [0, N), [N, 2*N), ... , [m*N, (m + 1)*N) Once deletion is performed up to a sequence number 'toSeqNr', then 'toSeqNr' will be used to determine the rightmost segment up to which compaction will be performed. Eligible segments for compaction are only considered to be those which include sequence numbers up to 'toSeqNr' AND whose size is equal to N (the compaction interval). This rule implies that if 'toSeqNr' spans an incomplete portion of a rightmost segment, then that segment will be omitted from the pending compaction, and will be included into the next one. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longcompactionInterval(java.lang.String persistenceId)scala.collection.immutable.Map<java.lang.String,java.lang.Object>compactionIntervals()longcompactionLimit(java.lang.String persistenceId, long toSeqNr)longcompactionSegment(java.lang.String persistenceId, long toSeqNr)booleanisCompactionEnabled(java.lang.String persistenceId)booleanisCompactionRequired(java.lang.String persistenceId, long toSeqNr)longlatestCompactionSegment(java.lang.String persistenceId)voidlatestCompactionSegments_$eq(scala.collection.immutable.Map<java.lang.String,java.lang.Object> x$1)booleanmustCompact(java.lang.String persistenceId, long toSeqNr)voidupdateCompactionSegment(java.lang.String persistenceId, long compactionSegment)
 
- 
- 
- 
Method Detail- 
latestCompactionSegments_$eqvoid latestCompactionSegments_$eq(scala.collection.immutable.Map<java.lang.String,java.lang.Object> x$1) 
 - 
compactionIntervalsscala.collection.immutable.Map<java.lang.String,java.lang.Object> compactionIntervals() 
 - 
updateCompactionSegmentvoid updateCompactionSegment(java.lang.String persistenceId, long compactionSegment)
 - 
compactionLimitlong compactionLimit(java.lang.String persistenceId, long toSeqNr)
 - 
compactionSegmentlong compactionSegment(java.lang.String persistenceId, long toSeqNr)
 - 
mustCompactboolean mustCompact(java.lang.String persistenceId, long toSeqNr)
 - 
isCompactionEnabledboolean isCompactionEnabled(java.lang.String persistenceId) 
 - 
isCompactionRequiredboolean isCompactionRequired(java.lang.String persistenceId, long toSeqNr)
 - 
latestCompactionSegmentlong latestCompactionSegment(java.lang.String persistenceId) 
 - 
compactionIntervallong compactionInterval(java.lang.String persistenceId) 
 
- 
 
-