public enum PacketSendMode extends Enum<PacketSendMode>
| Enum Constant and Description |
|---|
GROUP_BLOCK
一群消息阻塞发送,直接发送成功,才折回
|
QUEUE
把packet丢到一个队列中,让线程池去发送
|
SINGLE_BLOCK
单条消息阻塞发送,直接发送成功,才折回
|
| Modifier and Type | Method and Description |
|---|---|
static PacketSendMode |
forNumber(int value) |
int |
getValue() |
static PacketSendMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketSendMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketSendMode QUEUE
public static final PacketSendMode SINGLE_BLOCK
public static final PacketSendMode GROUP_BLOCK
public static PacketSendMode[] values()
for (PacketSendMode c : PacketSendMode.values()) System.out.println(c);
public static PacketSendMode 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 static PacketSendMode forNumber(int value)
public int getValue()
Copyright © 2021. All rights reserved.