org.apache.storm.trident.spout

## Interface IOpaquePartitionedTridentSpout.Coordinator<PartitionsT>

- All Known Implementing Classes:
    Coordinator, KafkaTridentSpoutCoordinator
  Enclosing interface:
    IOpaquePartitionedTridentSpout<PartitionsT,PartitionT extends ISpoutPartition,M>

      public static interface IOpaquePartitionedTridentSpout.Coordinator<PartitionsT>

  Coordinator for batches. Trident will only begin committing once at least one coordinator is ready.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `PartitionsT` | `getPartitionsForBatch()` Gets the partitions for the following batches.
    `boolean` | `isReady(long txid)` Indicates whether this coordinator is ready to commit the given transaction.

- - ### Method Detail

    - #### isReady

          boolean isReady(long txid)

      Indicates 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.

      Parameters:
        `txid` - The transaction id
      Returns:
        true if this coordinator is ready to commit, false otherwise.

    - #### getPartitionsForBatch

          PartitionsT getPartitionsForBatch()

      Gets the partitions for the following batches. The emitter will be asked to refresh partitions when this value changes.

      Returns:
        The partitions for the following batches.

    - #### close

          void close()

Copyright © 2021 The Apache Software Foundation. All rights reserved.