Class UserCustomSegmentAdapterConsumer
- java.lang.Object
-
- io.split.storages.pluggable.adapters.UserCustomSegmentAdapterConsumer
-
- All Implemented Interfaces:
SegmentCacheCommons,SegmentCacheConsumer
public class UserCustomSegmentAdapterConsumer extends Object implements SegmentCacheConsumer
-
-
Constructor Summary
Constructors Constructor Description UserCustomSegmentAdapterConsumer(CustomStorageWrapper customStorageWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChangeNumber(String segmentName)returns the changeNumber of a segmentlonggetKeyCount()return key countlonggetSegmentCount()return every segmentbooleanisInSegment(String segmentName, String key)evaluates if a key belongs to a segment
-
-
-
Constructor Detail
-
UserCustomSegmentAdapterConsumer
public UserCustomSegmentAdapterConsumer(CustomStorageWrapper customStorageWrapper)
-
-
Method Detail
-
getChangeNumber
public long getChangeNumber(String segmentName)
Description copied from interface:SegmentCacheCommonsreturns the changeNumber of a segment- Specified by:
getChangeNumberin interfaceSegmentCacheCommons- Returns:
-
isInSegment
public boolean isInSegment(String segmentName, String key)
Description copied from interface:SegmentCacheConsumerevaluates if a key belongs to a segment- Specified by:
isInSegmentin interfaceSegmentCacheConsumer- Returns:
-
getSegmentCount
public long getSegmentCount()
Description copied from interface:SegmentCacheConsumerreturn every segment- Specified by:
getSegmentCountin interfaceSegmentCacheConsumer- Returns:
-
getKeyCount
public long getKeyCount()
Description copied from interface:SegmentCacheConsumerreturn key count- Specified by:
getKeyCountin interfaceSegmentCacheConsumer- Returns:
-
-