public class FetchAttachmentsFlow
extends FetchDataFlow
Given a set of hashes either loads from from local storage or requests them from the other peer. Downloaded attachments are saved to local storage automatically.
FetchDataFlow.Request, FetchDataFlow.Result<T extends NamedByHash>
Constructor and Description |
---|
FetchAttachmentsFlow(java.util.Set<? extends net.corda.core.crypto.SecureHash> requests,
Party otherSide)
Given a set of hashes either loads from from local storage or requests them from the other peer. Downloaded
attachments are saved to local storage automatically.
|
Modifier and Type | Method and Description |
---|---|
Attachment |
convert(byte[] wire) |
Attachment |
load(SecureHash txid) |
void |
maybeWriteToDisk(java.util.List<? extends net.corda.core.contracts.Attachment> downloaded) |
call, convert, getOtherSide, getRequests, load, maybeWriteToDisk
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track
public FetchAttachmentsFlow(java.util.Set<? extends net.corda.core.crypto.SecureHash> requests, Party otherSide)
Given a set of hashes either loads from from local storage or requests them from the other peer. Downloaded attachments are saved to local storage automatically.
public Attachment load(SecureHash txid)
public Attachment convert(byte[] wire)
public void maybeWriteToDisk(java.util.List<? extends net.corda.core.contracts.Attachment> downloaded)