org.apache.camel.component.disruptor
Enum DisruptorProducerType

java.lang.Object
  extended by java.lang.Enum<DisruptorProducerType>
      extended by org.apache.camel.component.disruptor.DisruptorProducerType
All Implemented Interfaces:
Serializable, Comparable<DisruptorProducerType>

public enum DisruptorProducerType
extends Enum<DisruptorProducerType>

This enumeration re-enumerated the values of the ProducerType according to the Camel Case convention used in Camel. Multi is the default ProducerType.


Enum Constant Summary
Multi
          Create a RingBuffer supporting multiple event publishers to the Disruptors RingBuffer
Single
          Create a RingBuffer with a single event publisher to the Disruptors RingBuffer
 
Method Summary
 com.lmax.disruptor.dsl.ProducerType getProducerType()
           
static DisruptorProducerType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DisruptorProducerType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Single

public static final DisruptorProducerType Single
Create a RingBuffer with a single event publisher to the Disruptors RingBuffer


Multi

public static final DisruptorProducerType Multi
Create a RingBuffer supporting multiple event publishers to the Disruptors RingBuffer

Method Detail

values

public static DisruptorProducerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DisruptorProducerType c : DisruptorProducerType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DisruptorProducerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getProducerType

public com.lmax.disruptor.dsl.ProducerType getProducerType()


Apache Camel