/** * Timeout of the next timeout. * Called by the ProcedureExecutor if the procedure has timeout set and * the procedure is in the waiting queue. * @return the timestamp of the next timeout. */ protected long getTimeoutTimestamp() { return getLastUpdate() + getTimeout(); }
public void add(Procedure<TEnvironment> procedure) { assert procedure.getState() == ProcedureState.WAITING_TIMEOUT; LOG.info("ADDED {}; timeout={}, timestamp={}", procedure, procedure.getTimeout(), procedure.getTimeoutTimestamp()); queue.add(new DelayedProcedure<>(procedure)); }
public void add(Procedure<TEnvironment> procedure) { assert procedure.getState() == ProcedureState.WAITING_TIMEOUT; LOG.info("ADDED {}; timeout={}, timestamp={}", procedure, procedure.getTimeout(), procedure.getTimeoutTimestamp()); queue.add(new DelayedProcedure<>(procedure)); }
builder.setTimeout(proc.getTimeout());
public void add(Procedure<?> procedure) { assert procedure.getState() == ProcedureState.WAITING_TIMEOUT; LOG.info("ADDED {}; timeout={}, timestamp={}", procedure, procedure.getTimeout(), procedure.getTimeoutTimestamp()); queue.add(new DelayedProcedure(procedure)); }
/** * Timeout of the next timeout. * Called by the ProcedureExecutor if the procedure has timeout set and * the procedure is in the waiting queue. * @return the timestamp of the next timeout. */ protected long getTimeoutTimestamp() { return getLastUpdate() + getTimeout(); }
/** * Timeout of the next timeout. * Called by the ProcedureExecutor if the procedure has timeout set and * the procedure is in the waiting queue. * @return the timestamp of the next timeout. */ @InterfaceAudience.Private protected long getTimeoutTimestamp() { return getLastUpdate() + getTimeout(); }
builder.setTimeout(proc.getTimeout());
builder.setTimeout(proc.getTimeout());
builder.setTimeout(proc.getTimeout());