Class 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:
    Serialized Form
    • Constructor Detail

      • Pickle

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