public static enum TThreadedSelectorServerWithFix.Args.AcceptPolicy extends Enum<TThreadedSelectorServerWithFix.Args.AcceptPolicy>
Enum Constant and Description |
---|
FAIR_ACCEPT
Require accepted connection registration to be handled by the executor.
|
FAST_ACCEPT
Handle the accepts as fast as possible, disregarding the status of the
executor service.
|
Modifier and Type | Method and Description |
---|---|
static TThreadedSelectorServerWithFix.Args.AcceptPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TThreadedSelectorServerWithFix.Args.AcceptPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TThreadedSelectorServerWithFix.Args.AcceptPolicy FAIR_ACCEPT
public static final TThreadedSelectorServerWithFix.Args.AcceptPolicy FAST_ACCEPT
public static TThreadedSelectorServerWithFix.Args.AcceptPolicy[] values()
for (TThreadedSelectorServerWithFix.Args.AcceptPolicy c : TThreadedSelectorServerWithFix.Args.AcceptPolicy.values()) System.out.println(c);
public static TThreadedSelectorServerWithFix.Args.AcceptPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 The Apache Software Foundation. All rights reserved.