Class Pickle

  • All Implemented Interfaces:

    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.
    Kohsuke Kawaguchi
    See Also:
    Serialized Form
    • Constructor Detail

      • Pickle

        public Pickle()
    • Method Detail

      • rehydrate

        public<?> rehydrate()
      • rehydrate

        public<?> 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.
        owner - an owner handle on which you may, for example, call FlowExecutionOwner.getListener()
        a future on which Future.cancel(boolean) might be called; also polite to override Object.toString() for diagnostics