public enum ProducerType extends Enum<ProducerType>
| 枚举常量和说明 |
|---|
MULTI
Create a RingBuffer supporting multiple event publishers to the one RingBuffer
|
SINGLE
Create a RingBuffer with a single event publisher to the RingBuffer
|
public static final ProducerType SINGLE
public static final ProducerType MULTI
public static ProducerType[] values()
for (ProducerType c : ProducerType.values()) System.out.println(c);
public static ProducerType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2018 Pivotal Software, Inc.. All rights reserved.