public static enum NettyBaseConfig.WorkThreadMode extends Enum<NettyBaseConfig.WorkThreadMode>
| Enum Constant and Description |
|---|
Auto
Auto work thread mode.
|
BusyPin
Busy pin work thread mode.
|
Default
Default work thread mode.
|
Pin
Pin work thread mode.
|
| Modifier and Type | Method and Description |
|---|---|
static NettyBaseConfig.WorkThreadMode |
getModeByName(String name)
Gets mode by name.
|
int |
getValue()
Gets value.
|
static NettyBaseConfig.WorkThreadMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NettyBaseConfig.WorkThreadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NettyBaseConfig.WorkThreadMode Auto
public static final NettyBaseConfig.WorkThreadMode Pin
public static final NettyBaseConfig.WorkThreadMode BusyPin
public static final NettyBaseConfig.WorkThreadMode Default
public static NettyBaseConfig.WorkThreadMode[] values()
for (NettyBaseConfig.WorkThreadMode c : NettyBaseConfig.WorkThreadMode.values()) System.out.println(c);
public static NettyBaseConfig.WorkThreadMode 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 nullpublic int getValue()
public static NettyBaseConfig.WorkThreadMode getModeByName(String name)
name - the nameCopyright © 2023 Seata. All rights reserved.