Class TpcConfig

java.lang.Object
com.hazelcast.config.tpc.TpcConfig

@Beta public class TpcConfig extends Object
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 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

      @Nonnull public TpcConfig setEnabled(boolean enabled)
      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

      @Nonnull public TpcConfig setEventloopCount(int eventloopCount)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object