public class ActionBasedSegmentAllocator extends Object implements SegmentAllocator
Constructor and Description |
---|
ActionBasedSegmentAllocator(TaskActionClient taskActionClient,
DataSchema dataSchema) |
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.
|
public ActionBasedSegmentAllocator(TaskActionClient taskActionClient, DataSchema dataSchema)
public SegmentIdentifier allocate(org.joda.time.DateTime timestamp, String sequenceName, String previousSegmentId) throws IOException
SegmentAllocator
allocate
in interface SegmentAllocator
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.