Package org.apache.thrift.server
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequire accepted connection registration to be handled by the executor.Handle the accepts as fast as possible, disregarding the status of the executor service. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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 nameNullPointerException
- if the argument is null
-