Enum CloudEventProcessors
- java.lang.Object
-
- java.lang.Enum<CloudEventProcessors>
-
- org.apache.camel.component.knative.ce.CloudEventProcessors
-
- All Implemented Interfaces:
Serializable
,Comparable<CloudEventProcessors>
,CloudEventProcessor
public enum CloudEventProcessors extends Enum<CloudEventProcessors> implements CloudEventProcessor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudEvent
cloudEvent()
org.apache.camel.Processor
consumer(KnativeEndpoint endpoint, KnativeEnvironment.KnativeResource service)
static CloudEventProcessor
fromSpecVersion(String version)
org.apache.camel.Processor
producer(KnativeEndpoint endpoint, KnativeEnvironment.KnativeResource service)
static CloudEventProcessors
valueOf(String name)
Returns the enum constant of this type with the specified name.static CloudEventProcessors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
v0_1
public static final CloudEventProcessors v0_1
-
v0_2
public static final CloudEventProcessors v0_2
-
v0_3
public static final CloudEventProcessors v0_3
-
v1_0
public static final CloudEventProcessors v1_0
-
-
Method Detail
-
values
public static CloudEventProcessors[] 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 (CloudEventProcessors c : CloudEventProcessors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CloudEventProcessors 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 nameNullPointerException
- if the argument is null
-
cloudEvent
public CloudEvent cloudEvent()
- Specified by:
cloudEvent
in interfaceCloudEventProcessor
-
consumer
public org.apache.camel.Processor consumer(KnativeEndpoint endpoint, KnativeEnvironment.KnativeResource service)
- Specified by:
consumer
in interfaceCloudEventProcessor
-
producer
public org.apache.camel.Processor producer(KnativeEndpoint endpoint, KnativeEnvironment.KnativeResource service)
- Specified by:
producer
in interfaceCloudEventProcessor
-
fromSpecVersion
public static CloudEventProcessor fromSpecVersion(String version)
-
-