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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintGets the number of eventloops.inthashCode()booleanGets 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- 
TpcConfigpublic TpcConfig()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Gets the enabled flag which defines TPC is enabled or not.- Returns:
- true if TPC is enabled
 
- 
setEnabledSets 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
 
- 
getEventloopCountpublic int getEventloopCount()Gets the number of eventloops.- Returns:
- the number of eventloops
- See Also:
 
- 
setEventloopCountIn 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
- 
hashCodepublic int hashCode()
- 
toString
 
-