public interface ConsumablePartition
Partition
available for consuming.Modifier and Type | Method and Description |
---|---|
void |
complete()
Marks the ProcessState as COMPLETED
|
void |
discard()
Marks the ProcessState as DISCARDED
|
int |
getNumFailures() |
PartitionKey |
getPartitionKey() |
ProcessState |
getProcessState() |
long |
getTimestamp() |
int |
incrementNumFailures() |
void |
retry()
Marks the ProcessState as AVAILABLE, resets the timestamp to 0, and increments the number of failures by 1
|
void |
setProcessState(ProcessState processState)
Sets a ProcessState to this ConsumablePartition
|
void |
setTimestamp(long timestamp)
Set a timestamp on this partition, when this partition is claimed for processing.
|
void |
take()
Marks the ProcessState as IN_PROGRESS
|
void |
untake()
Marks the ProcessState as AVAILABLE, after it has been taken.
|
PartitionKey getPartitionKey()
int getNumFailures()
int incrementNumFailures()
ProcessState getProcessState()
void setProcessState(ProcessState processState)
void take()
void untake()
void retry()
void complete()
void discard()
long getTimestamp()
void setTimestamp(long timestamp)
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.