Package org.kie.api.runtime.conf
Class ClockTypeOption
- java.lang.Object
-
- org.kie.api.runtime.conf.ClockTypeOption
-
- All Implemented Interfaces:
Serializable
,Option
,KieSessionOption
,SingleValueKieSessionOption
public class ClockTypeOption extends Object implements SingleValueKieSessionOption
A class for the session clock configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NAME
The property name for the clock type configurationstatic ClockTypeOption
PSEUDO
static ClockTypeOption
REALTIME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ClockTypeOption
get(String clockType)
This is a factory method for this Clock Type configuration.String
getClockType()
String
getPropertyName()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
PSEUDO
public static final ClockTypeOption PSEUDO
-
REALTIME
public static final ClockTypeOption REALTIME
-
PROPERTY_NAME
public static final String PROPERTY_NAME
The property name for the clock type configuration- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static ClockTypeOption get(String clockType)
This is a factory method for this Clock Type configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.- Parameters:
clockType
- the identifier for the clock type- Returns:
- the actual type safe default clock type configuration.
-
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName
in interfaceOption
- Returns:
- the property name for this option
-
getClockType
public String getClockType()
- Returns:
- the configured clock type
-
-