Serializable
, Comparable<ProducerType>
public enum ProducerType extends Enum<ProducerType>
Enum Constant | Description |
---|---|
MULTI |
Create a RingBuffer supporting multiple event publishers to the one RingBuffer
|
SINGLE |
Create a RingBuffer with a single event publisher to the RingBuffer
|
Modifier and Type | Method | Description |
---|---|---|
static ProducerType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ProducerType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 © 2019. All rights reserved.