Package org.drools.core.command.runtime
Class AdvanceSessionTimeCommand
- java.lang.Object
-
- org.drools.core.command.runtime.AdvanceSessionTimeCommand
-
- All Implemented Interfaces:
Serializable
,IdentifiableResult
,org.kie.api.command.Command<Long>
,org.kie.api.command.ExecutableCommand<Long>
public class AdvanceSessionTimeCommand extends Object implements org.kie.api.command.ExecutableCommand<Long>, IdentifiableResult
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdvanceSessionTimeCommand()
AdvanceSessionTimeCommand(long amount, TimeUnit unit)
AdvanceSessionTimeCommand(String outIdentifier, long amount, TimeUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
execute(org.kie.api.runtime.Context context)
long
getAmount()
String
getOutIdentifier()
TimeUnit
getUnit()
void
setAmount(long amount)
void
setOutIdentifier(String outIdentifier)
void
setUnit(TimeUnit unit)
String
toString()
-
-
-
Method Detail
-
execute
public Long execute(org.kie.api.runtime.Context context)
- Specified by:
execute
in interfaceorg.kie.api.command.ExecutableCommand<Long>
-
getOutIdentifier
public String getOutIdentifier()
- Specified by:
getOutIdentifier
in interfaceIdentifiableResult
-
setOutIdentifier
public void setOutIdentifier(String outIdentifier)
- Specified by:
setOutIdentifier
in interfaceIdentifiableResult
-
getAmount
public long getAmount()
-
setAmount
public void setAmount(long amount)
-
getUnit
public TimeUnit getUnit()
-
setUnit
public void setUnit(TimeUnit unit)
-
-