Class AdvanceSessionTimeCommand

java.lang.Object
org.drools.commands.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:
  • Constructor Details

    • AdvanceSessionTimeCommand

      public AdvanceSessionTimeCommand()
    • AdvanceSessionTimeCommand

      public AdvanceSessionTimeCommand(long amount, TimeUnit unit)
    • AdvanceSessionTimeCommand

      public AdvanceSessionTimeCommand(String outIdentifier, long amount, TimeUnit unit)
  • Method Details

    • execute

      public Long execute(org.kie.api.runtime.Context context)
      Specified by:
      execute in interface org.kie.api.command.ExecutableCommand<Long>
    • getOutIdentifier

      public String getOutIdentifier()
      Specified by:
      getOutIdentifier in interface IdentifiableResult
    • setOutIdentifier

      public void setOutIdentifier(String outIdentifier)
      Specified by:
      setOutIdentifier in interface IdentifiableResult
    • getAmount

      public long getAmount()
    • setAmount

      public void setAmount(long amount)
    • getUnit

      public TimeUnit getUnit()
    • setUnit

      public void setUnit(TimeUnit unit)
    • toString

      public String toString()
      Overrides:
      toString in class Object