org.apache.storm.redis.trident.state

## Class RedisClusterState.Factory

- java.lang.Object
- - org.apache.storm.redis.trident.state.RedisClusterState.Factory

- All Implemented Interfaces:
    Serializable, StateFactory
  Enclosing class:
    RedisClusterState

      public static class RedisClusterState.Factory
      extends Object
      implements StateFactory

  RedisClusterState.Factory implements StateFactory for Redis Cluster environment.

  See Also:
    `StateFactory`, Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static redis.clients.jedis.JedisPoolConfig` | `DEFAULT_POOL_CONFIG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Factory(JedisClusterConfig config)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `State` | `makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)`

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

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

- - ### Field Detail

    - #### DEFAULT_POOL_CONFIG

          public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG

  - ### Constructor Detail

    - #### Factory

          public Factory(JedisClusterConfig config)

      Constructor.

      Parameters:
        `config` - configuration of JedisCluster

  - ### Method Detail

    - #### makeState

          public State makeState(Map<String,Object> conf,
                                 IMetricsContext metrics,
                                 int partitionIndex,
                                 int numPartitions)

      Specified by:
        `makeState` in interface `StateFactory`

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