Class TryRepeatedly<V>
- java.lang.Object
-
- com.google.common.util.concurrent.internal.InternalFutureFailureAccess
-
- com.google.common.util.concurrent.AbstractFuture<V>
-
- org.jenkinsci.plugins.workflow.support.pickles.TryRepeatedly<V>
-
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>
,Future<V>
public abstract class TryRepeatedly<V> extends com.google.common.util.concurrent.AbstractFuture<V>
ListenableFuture
that promises a value that needs to be periodically tried. Specialized for use fromPickle.rehydrate(FlowExecutionOwner)
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TryRepeatedly(int delay)
protected
TryRepeatedly(int delay, int initialDelay)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
protected org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner
getOwner()
Override to supply the owner passed toPickle.rehydrate(FlowExecutionOwner)
.protected void
printWaitingMessage(TaskListener listener)
AssuminggetOwner()
has been overridden, override to print a message to the build log explaining why the pickle is still unloadable.protected abstract V
tryResolve()
This method is called periodically to attempt to resolve the value that this future promises.
-
-
-
Method Detail
-
getOwner
@NonNull protected org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner getOwner()
Override to supply the owner passed toPickle.rehydrate(FlowExecutionOwner)
.
-
printWaitingMessage
protected void printWaitingMessage(@NonNull TaskListener listener)
AssuminggetOwner()
has been overridden, override to print a message to the build log explaining why the pickle is still unloadable. Could useModelHyperlinkNote
etc.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
-