Constructor and Description |
---|
TpcConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getEventloopCount()
Gets the number of eventloops.
|
int |
hashCode() |
boolean |
isEnabled()
Gets the enabled flag which defines TPC is enabled or not.
|
TpcConfig |
setEnabled(boolean enabled)
Sets the enabled flag which defines TPC is enabled or not.
|
TpcConfig |
setEventloopCount(int eventloopCount)
In TPC, everything is done in eventloops.
|
String |
toString() |
public boolean isEnabled()
@Nonnull public TpcConfig setEnabled(boolean enabled)
enabled
- a boolean to enable or disable TPCpublic int getEventloopCount()
Runtime.availableProcessors()
,
setEventloopCount(int)
@Nonnull public TpcConfig setEventloopCount(int eventloopCount)
eventloopCount
- the number of eventloopsIllegalArgumentException
- if eventloopCount isn't positiveRuntime.availableProcessors()
Copyright © 2023 Hazelcast, Inc.. All rights reserved.