public interface PartitionManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
lockPartition(String consumerName,
String eventName,
String partition,
String lockedBy,
long timeout,
TimeUnit timeoutUnit) |
default List<Partition> |
lockPartitions(String consumerName,
String eventName,
List<Partition> partitions,
String lockedBy,
long timeout,
TimeUnit timeoutUnit) |
void |
unlockPartition(String consumerName,
String eventName,
String partition,
String lockedBy) |
boolean lockPartition(String consumerName, String eventName, String partition, String lockedBy, long timeout, TimeUnit timeoutUnit)
consumerName - Name of the consuming application which might be running on multiple nodeseventName - Name of the eventpartition - The partition to locklockedBy - Name of one node of the consuming applicationtimeout - Timeout after that the lock will automatically be releasedtimeoutUnit - Time unit for the timeoutvoid unlockPartition(String consumerName, String eventName, String partition, String lockedBy)
consumerName - Name of the consuming application which might be running on multiple nodeseventName - Name of the eventpartition - The partition to locklockedBy - Name of one node of the consuming applicationdefault List<Partition> lockPartitions(String consumerName, String eventName, List<Partition> partitions, String lockedBy, long timeout, TimeUnit timeoutUnit)
consumerName - Name of the consuming application which might be running on multiple nodeseventName - Name of the eventpartitions - List of the partitions that should be lockedlockedBy - Name of one node of the consuming applicationtimeout - Timeout after that the lock will automatically be releasedtimeoutUnit - Time unit for the timeoutCopyright © 2016 Zalando SE. All rights reserved.