Package | Description |
---|---|
com.hazelcast.client.config |
Contains classes related to config for com.hazelcast.client
|
Modifier and Type | Method and Description |
---|---|
ClientFlakeIdGeneratorConfig |
ClientConfig.findFlakeIdGeneratorConfig(String name)
Returns a
ClientFlakeIdGeneratorConfig configuration for the given flake ID generator name. |
ClientFlakeIdGeneratorConfig |
ClientConfig.getFlakeIdGeneratorConfig(String name)
Returns the
ClientFlakeIdGeneratorConfig for the given name, creating
one if necessary and adding it to the collection of known configurations. |
ClientFlakeIdGeneratorConfig |
ClientFlakeIdGeneratorConfig.setPrefetchCount(int prefetchCount)
Sets how many IDs are pre-fetched on the background when one call to
FlakeIdGenerator.newId() is made. |
ClientFlakeIdGeneratorConfig |
ClientFlakeIdGeneratorConfig.setPrefetchValidityMillis(long prefetchValidityMs)
Sets for how long the pre-fetched IDs can be used.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ClientFlakeIdGeneratorConfig> |
ClientConfig.getFlakeIdGeneratorConfigMap()
Returns the map of
FlakeIdGenerator configurations,
mapped by config name. |
Modifier and Type | Method and Description |
---|---|
ClientConfig |
ClientConfig.addFlakeIdGeneratorConfig(ClientFlakeIdGeneratorConfig config)
Adds a flake ID generator configuration.
|
Modifier and Type | Method and Description |
---|---|
ClientConfig |
ClientConfig.setFlakeIdGeneratorConfigMap(Map<String,ClientFlakeIdGeneratorConfig> map)
Sets the map of
FlakeIdGenerator configurations,
mapped by config name. |
Constructor and Description |
---|
ClientFlakeIdGeneratorConfig(ClientFlakeIdGeneratorConfig other)
Copy-constructor
|
Copyright © 2018 Hazelcast, Inc.. All rights reserved.