Enum Class TThreadedSelectorServer.Args.AcceptPolicy

java.lang.Object
java.lang.Enum<TThreadedSelectorServer.Args.AcceptPolicy>
org.apache.thrift.server.TThreadedSelectorServer.Args.AcceptPolicy
All Implemented Interfaces:
Serializable, Comparable<TThreadedSelectorServer.Args.AcceptPolicy>, Constable
Enclosing class:
TThreadedSelectorServer.Args

public static enum TThreadedSelectorServer.Args.AcceptPolicy extends Enum<TThreadedSelectorServer.Args.AcceptPolicy>
Determines the strategy for handling new accepted connections.
  • Enum Constant Details

    • FAIR_ACCEPT

      public static final TThreadedSelectorServer.Args.AcceptPolicy FAIR_ACCEPT
      Require accepted connection registration to be handled by the executor. If the worker pool is saturated, further accepts will be closed immediately. Slightly increases latency due to an extra scheduling.
    • FAST_ACCEPT

      public static final TThreadedSelectorServer.Args.AcceptPolicy FAST_ACCEPT
      Handle the accepts as fast as possible, disregarding the status of the executor service.
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TThreadedSelectorServer.Args.AcceptPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null