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 StringPROPERTY_NAMEThe property name for the clock type configurationstatic ClockTypeOptionPSEUDOstatic ClockTypeOptionREALTIME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ClockTypeOptionget(String clockType)This is a factory method for this Clock Type configuration.StringgetClockType()StringgetPropertyName()inthashCode()StringtoString()
-
-
-
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:
getPropertyNamein interfaceOption- Returns:
- the property name for this option
-
getClockType
public String getClockType()
- Returns:
- the configured clock type
-
-