@Beta public final class ClientTpcConfig extends Object
TPC is the next generation Hazelcast that uses thread-per-core model.
TPC-aware clients will maintain connections to all cores of all cluster members. The client will route partition-specific invocations to the correct core of the correct member in the best effort basis.
Constructor and Description |
---|
ClientTpcConfig() |
ClientTpcConfig(ClientTpcConfig tpcConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEnabled()
Returns if the TPC-aware mode is enabled.
|
ClientTpcConfig |
setEnabled(boolean enabled)
Enables or disables the TPC-aware mode.
|
String |
toString() |
public ClientTpcConfig()
public ClientTpcConfig(@Nonnull ClientTpcConfig tpcConfig)
public boolean isEnabled()
true
if the TPC-aware mode is enabled, false
otherwise.public ClientTpcConfig setEnabled(boolean enabled)
When enabled, the configuration option set by the
ClientNetworkConfig.setSmartRouting(boolean)
is ignored.
enabled
- flag to enable or disable TPC-aware modeCopyright © 2023 Hazelcast, Inc.. All rights reserved.