Enum ServiceEvent.Type
- java.lang.Object
-
- java.lang.Enum<ServiceEvent.Type>
-
- software.amazon.disco.agent.event.ServiceEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ServiceEvent.Type>
- Enclosing interface:
- ServiceEvent
public static enum ServiceEvent.Type extends java.lang.Enum<ServiceEvent.Type>
The type of this ServiceEvent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVITYIf the event is 'my service is handling a request'DOWNSTREAMIf the event is 'I am making a request of a dependency'
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceEvent.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ServiceEvent.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVITY
public static final ServiceEvent.Type ACTIVITY
If the event is 'my service is handling a request'
-
DOWNSTREAM
public static final ServiceEvent.Type DOWNSTREAM
If the event is 'I am making a request of a dependency'
-
-
Method Detail
-
values
public static ServiceEvent.Type[] 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 (ServiceEvent.Type c : ServiceEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceEvent.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-