org.apache.storm.rocketmq.trident.state

## Class RocketMqState

- java.lang.Object
- - org.apache.storm.rocketmq.trident.state.RocketMqState

- All Implemented Interfaces:
    State

      public class RocketMqState
      extends Object
      implements State

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `RocketMqState.Options`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `RocketMqState(Map<String,Object> map, RocketMqState.Options options)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beginCommit(Long txid)`
    `void` | `commit(Long txid)`
    `protected void` | `prepare()`
    `void` | `updateState(List<TridentTuple> tuples, TridentCollector collector)` Update the RocketMQ state.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RocketMqState

          protected RocketMqState(Map<String,Object> map,
                                  RocketMqState.Options options)

  - ### Method Detail

    - #### prepare

          protected void prepare()

    - #### beginCommit

          public void beginCommit(Long txid)

      Specified by:
        `beginCommit` in interface `State`

    - #### commit

          public void commit(Long txid)

      Specified by:
        `commit` in interface `State`

    - #### updateState

          public void updateState(List<TridentTuple> tuples,
                                  TridentCollector collector)

      Update the RocketMQ state.

      Parameters:
        `tuples` - trident tuples
        `collector` - trident collector

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