Package com.hazelcast.config.tpc
Class TpcConfig
java.lang.Object
com.hazelcast.config.tpc.TpcConfig
Hazelcast TPC is the next generation of Hazelcast built with thread
per core architecture. It's still being developed and everything is
subject to change. TPC is disabled by default and is only available
for Hazelcast Enterprise.
- Since:
- 5.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the number of eventloops.int
hashCode()
boolean
Gets the enabled flag which defines TPC is enabled or not.setEnabled
(boolean enabled) Sets the enabled flag which defines TPC is enabled or not.setEventloopCount
(int eventloopCount) In TPC, everything is done in eventloops.toString()
-
Constructor Details
-
TpcConfig
public TpcConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Gets the enabled flag which defines TPC is enabled or not.- Returns:
- true if TPC is enabled
-
setEnabled
Sets the enabled flag which defines TPC is enabled or not. Can't return null.- Parameters:
enabled
- a boolean to enable or disable TPC- Returns:
- this
-
getEventloopCount
public int getEventloopCount()Gets the number of eventloops.- Returns:
- the number of eventloops
- See Also:
-
setEventloopCount
In TPC, everything is done in eventloops. This method sets the number eventloops. By default, it's equal to the number of available processors. Can't return null.- Parameters:
eventloopCount
- the number of eventloops- Returns:
- this
- Throws:
IllegalArgumentException
- if eventloopCount isn't positive- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-