public class KafkaTridentSpoutOpaqueCoordinator<K,V> extends Object implements IOpaquePartitionedTridentSpout.Coordinator<List<Map<String,Object>>>, Serializable
| Constructor and Description |
|---|
KafkaTridentSpoutOpaqueCoordinator(KafkaTridentSpoutManager<K,V> kafkaManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<Map<String,Object>> |
getPartitionsForBatch()
Gets the partitions for the following batches.
|
boolean |
isReady(long txid)
Indicates whether this coordinator is ready to commit the given transaction.
|
String |
toString() |
public KafkaTridentSpoutOpaqueCoordinator(KafkaTridentSpoutManager<K,V> kafkaManager)
public boolean isReady(long txid)
IOpaquePartitionedTridentSpout.CoordinatorIndicates whether this coordinator is ready to commit the given transaction. The master batch coordinator will only begin committing if at least one coordinator indicates it is ready to commit.
public List<Map<String,Object>> getPartitionsForBatch()
IOpaquePartitionedTridentSpout.CoordinatorGets the partitions for the following batches. The emitter will be asked to refresh partitions when this value changes.
getPartitionsForBatch in interface IOpaquePartitionedTridentSpout.Coordinator<List<Map<String,Object>>>public void close()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.