Package me.ahoo.cosid.proxy
Class ProxyIdSegmentDistributor
java.lang.Object
me.ahoo.cosid.segment.AbstractIdSegmentDistributor
me.ahoo.cosid.proxy.ProxyIdSegmentDistributor
- All Implemented Interfaces:
Grouped,IdSegmentDistributor
ProxyIdSegmentDistributor .

-
Field Summary
Fields inherited from interface me.ahoo.cosid.segment.IdSegmentDistributor
DEFAULT_OFFSET, DEFAULT_SEGMENTS, DEFAULT_STEP -
Constructor Summary
ConstructorsConstructorDescriptionProxyIdSegmentDistributor(SegmentClient segmentClient, String namespace, String name, long step) -
Method Summary
Modifier and TypeMethodDescriptionprotected longdoNextMaxId(long step) Ask the store for the next max id,stepafter the previous one.Methods inherited from class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
getLastMaxId, getName, getNamespace, getStep, nextMaxIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.ahoo.cosid.segment.IdSegmentDistributor
allowReset, getNamespacedName, getStep, nextIdSegment, nextIdSegment, nextIdSegment, nextIdSegmentChain, nextIdSegmentChain, nextMaxId
-
Constructor Details
-
ProxyIdSegmentDistributor
public ProxyIdSegmentDistributor(SegmentClient segmentClient, String namespace, String name, long step)
-
-
Method Details
-
doNextMaxId
protected long doNextMaxId(long step) Description copied from class:AbstractIdSegmentDistributorAsk the store for the next max id,stepafter the previous one.- Specified by:
doNextMaxIdin classAbstractIdSegmentDistributor- Parameters:
step- the step, already validated- Returns:
- the new max id
-