Package | Description |
---|---|
com.hazelcast.config |
Provides classes for configuring HazelcastInstance.
|
Modifier and Type | Method and Description |
---|---|
FlakeIdGeneratorConfig |
Config.findFlakeIdGeneratorConfig(String name)
Returns a
FlakeIdGeneratorConfig configuration for the given flake ID generator name. |
FlakeIdGeneratorConfig |
Config.getFlakeIdGeneratorConfig(String name)
Returns the
FlakeIdGeneratorConfig for the given name, creating
one if necessary and adding it to the collection of known configurations. |
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setAllowedFutureMillis(long allowedFutureMillis)
Sets how far to the future is the generator allowed to go to generate IDs without blocking.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setBitsNodeId(int bitsNodeId)
Sets the bit-length of node id component.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setBitsSequence(int bitsSequence)
Sets the bit-length of the sequence component.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setEpochStart(long epochStart)
Sets the offset of timestamp component in milliseconds.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setName(String name)
Sets the name or name pattern for this config.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setNodeIdOffset(long nodeIdOffset)
Sets the offset that will be added to the node ID assigned to cluster member for this generator.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setPrefetchCount(int prefetchCount)
Sets how many IDs are pre-fetched on the background when one call to
FlakeIdGenerator.newId() is made. |
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setPrefetchValidityMillis(long prefetchValidityMs)
Sets for how long the pre-fetched IDs can be used.
|
FlakeIdGeneratorConfig |
FlakeIdGeneratorConfig.setStatisticsEnabled(boolean statisticsEnabled)
Enables or disables statistics gathering of
LocalFlakeIdGeneratorStats . |
Modifier and Type | Method and Description |
---|---|
Map<String,FlakeIdGeneratorConfig> |
Config.getFlakeIdGeneratorConfigs()
Returns the map of
FlakeIdGenerator configurations,
mapped by config name. |
Modifier and Type | Method and Description |
---|---|
Config |
Config.addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig config)
Adds a flake ID generator configuration.
|
Modifier and Type | Method and Description |
---|---|
Config |
Config.setFlakeIdGeneratorConfigs(Map<String,FlakeIdGeneratorConfig> map)
Sets the map of
FlakeIdGenerator configurations,
mapped by config name. |
Constructor and Description |
---|
FlakeIdGeneratorConfig(FlakeIdGeneratorConfig other)
Copy-constructor
|
Copyright © 2020 Hazelcast, Inc.. All rights reserved.