Class RiverReader
java.lang.Object
org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
Reads program data file that stores the object graph of the CPS-transformed program.
The file consists of two separate object streams. The first stream contains a list of Pickle
s,
which are used to restore stateful objects. The second stream is the main stream that contains
the main program state, which includes references to DryCapsule
(which gets replaced to
their respective stateful objects.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRiverReader
(File f, ClassLoader classLoader, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller>
Deprecated.com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller>
restorePickles
(Collection<com.google.common.util.concurrent.ListenableFuture<?>> pickleFutures) Step 1.
-
Field Details
-
customResolver
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public static org.jboss.marshalling.ObjectResolver customResolver
-
-
Constructor Details
-
RiverReader
public RiverReader(File f, ClassLoader classLoader, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) throws IOException - Throws:
IOException
-
-
Method Details
-
restorePickles
@Deprecated public com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> restorePickles() throws IOExceptionDeprecated.- Throws:
IOException
-
restorePickles
public com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> restorePickles(Collection<com.google.common.util.concurrent.ListenableFuture<?>> pickleFutures) throws IOException Step 1. Start unmarshalling pickles in the persisted stream, and return the future that will signal when that is all complete. Once the pickles are restored, the future yieldsUnmarshaller
that can be then used to load the objects persisted byRiverWriter
.- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-