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 as FilePath.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.util.concurrent.ListenableFuture<?>
    Deprecated.
    com.google.common.util.concurrent.ListenableFuture<?>
    Start preparing rehydration of this value, and when it's ready or fail, report that to the given call.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Pickle

      public Pickle()
  • Method Details

    • 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, call FlowExecutionOwner.getListener()
      Returns:
      a future on which Future.cancel(boolean) might be called; also polite to override Object.toString() for diagnostics