Style Intelligence v12.0

inetsoft.sree.schedule
Interface ScheduleCondition

All Superinterfaces:
Serializable
All Known Subinterfaces:
UserCondition
All Known Implementing Classes:
CompletionCondition, DefaultUserCondition, TimeCondition

public interface ScheduleCondition
extends Serializable

This interface defines the API for the condition used to check to see if a scheduled task is qualified to run.


Method Summary
 boolean check(long curr)
          Check the condition.
 long getRetryTime(long curr)
          Get the next time to retry the condition.
 

Method Detail

check

boolean check(long curr)
Check the condition.

Parameters:
curr - current time.
Returns:
true if the condition is met.

getRetryTime

long getRetryTime(long curr)
Get the next time to retry the condition.

Parameters:
curr - current time.
Returns:
the next time to retry. Negative value to stop retry.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.