public interface SegmentAllocator
Modifier and Type | Method and Description |
---|---|
SegmentIdentifier |
allocate(org.joda.time.DateTime timestamp,
String sequenceName,
String previousSegmentId)
Allocates a new segment for a given timestamp.
|
SegmentIdentifier allocate(org.joda.time.DateTime timestamp, String sequenceName, String previousSegmentId) throws IOException
timestamp
- timestamp of the event which triggered this allocation requestsequenceName
- sequenceName for this allocationpreviousSegmentId
- segment identifier returned on the previous call to allocate for your sequenceNameIOException
Copyright © 2011–2017. All rights reserved.