public class RiverReader extends Object implements Closeable
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.
Modifier and Type | Field and Description |
---|---|
static org.jboss.marshalling.ObjectResolver |
customResolver |
Constructor and Description |
---|
RiverReader(File f,
ClassLoader classLoader,
org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> |
restorePickles()
Deprecated.
|
com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> |
restorePickles(Collection<com.google.common.util.concurrent.ListenableFuture<?>> pickleFutures)
Step 1.
|
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public static org.jboss.marshalling.ObjectResolver customResolver
public RiverReader(File f, ClassLoader classLoader, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) throws IOException
IOException
@Deprecated public com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> restorePickles() throws IOException
IOException
public com.google.common.util.concurrent.ListenableFuture<org.jboss.marshalling.Unmarshaller> restorePickles(Collection<com.google.common.util.concurrent.ListenableFuture<?>> pickleFutures) throws IOException
Unmarshaller
that can be then used to load the objects persisted by RiverWriter
.IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2016–2017. All rights reserved.