Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.amazonaws.services.simpleworkflow.flow.interceptors;
 
 import java.util.Date;
 
Encapsulates an invocation schedule.

Author(s):
fateev
See also:
AsyncScheduledExecutor
ScheduleDecorator
public interface InvocationSchedule {

    
Return interval until the next invocation.

Parameters:
currentTime - current workflow time
startTime - time when workflow started
lastInvocationTime - time when last invocation happened
pastInvocatonsCount - how many invocations were done
Returns:
time in seconds until the next invocation. com.amazonaws.services.simpleworkflow.flow.common.FlowConstants.NONE if no more invocations should be scheduled.
    long nextInvocationDelaySeconds(Date currentTimeDate startTimeDate lastInvocationTimeint pastInvocatonsCount);
New to GrepCode? Check out our FAQ X