com.alibaba.rocketmq.client.impl
枚举 CommunicationMode
java.lang.Object
java.lang.Enum<CommunicationMode>
com.alibaba.rocketmq.client.impl.CommunicationMode
- 所有已实现的接口:
- Serializable, Comparable<CommunicationMode>
public enum CommunicationMode
- extends Enum<CommunicationMode>
通信方式
- 从以下版本开始:
- 2013-7-24
- 作者:
- shijia.wxr
SYNC
public static final CommunicationMode SYNC
ASYNC
public static final CommunicationMode ASYNC
ONEWAY
public static final CommunicationMode ONEWAY
values
public static CommunicationMode[] values()
- 按照声明该枚举类型的常量的顺序,返回
包含这些常量的数组。该方法可用于迭代
常量,如下所示:
for (CommunicationMode c : CommunicationMode.values())
System.out.println(c);
valueOf
public static CommunicationMode valueOf(String name)
- 返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格。)
- 参数:
name - 要返回的枚举常量的名称。
- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException
Copyright © 2012-2014. All Rights Reserved.