Class Pickle
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.pickles.Pickle
-
- All Implemented Interfaces:
Serializable
public abstract class Pickle extends Object implements Serializable
Handle value objects to replace another stateful objects that cannot be serialized on its own, such asFilePath
.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Pickle()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<?>
rehydrate()
Deprecated.com.google.common.util.concurrent.ListenableFuture<?>
rehydrate(FlowExecutionOwner owner)
Start preparing rehydration of this value, and when it's ready or fail, report that to the given call.
-
-
-
Method Detail
-
rehydrate
@Deprecated public com.google.common.util.concurrent.ListenableFuture<?> rehydrate()
Deprecated.
-
rehydrate
public com.google.common.util.concurrent.ListenableFuture<?> rehydrate(FlowExecutionOwner owner)
Start preparing rehydration of this value, and when it's ready or fail, report that to the given call. An implementation should return quickly and avoid acquiring locks in this method itself (as opposed to the future).Future.cancel(boolean)
should be implemented if possible.- Parameters:
owner
- an owner handle on which you may, for example, callFlowExecutionOwner.getListener()
- Returns:
- a future on which
Future.cancel(boolean)
might be called; also polite to overrideObject.toString()
for diagnostics
-
-