public interface MimeBodyPartRecorder
 Any track(javax.activation.DataSource) call has to be done within the closure given to record(java.util.concurrent.Callable). Nested #record(java.util.concurrent.Callable) should be
 supported in the way that they start a new, isolated recording whilst remembering the outer tracking calls.
 
 A MimeBodyPartRecorder implementation has to be thread-safe but is not required to share its state
 amongst threads. That is, even if a recorder instance is shared amongst threads, a track(javax.activation.DataSource) call from a different thread than the one setting up the record(java.util.concurrent.Callable), will not necessarily be tracked.
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isRecording() | 
| <T> com.atlassian.fugue.Pair<com.atlassian.fugue.Maybe<T>,Iterable<MimeBodyPartReference>> | record(Callable<T> callback)Deprecated. 
 since 7.0.1. Use  startRecording(Callable) | 
| default <T> io.atlassian.fugue.Pair<Optional<T>,Iterable<MimeBodyPartReference>> | startRecording(Callable<T> callback)Activate the recorder so that it can record  trackSource(DataSource)calls. | 
| com.atlassian.fugue.Maybe<MimeBodyPartReference> | track(DataSource source)Deprecated. 
 since 7.0.1. Use  trackSource(DataSource) | 
| default Optional<MimeBodyPartReference> | trackSource(DataSource source)Track the given image source. | 
@Deprecated <T> com.atlassian.fugue.Pair<com.atlassian.fugue.Maybe<T>,Iterable<MimeBodyPartReference>> record(Callable<T> callback) throws Exception
startRecording(Callable)track(javax.activation.DataSource) calls.T - the return type of the callbackcallback - the code eligible for recordingException - if the callback escapesdefault <T> io.atlassian.fugue.Pair<Optional<T>,Iterable<MimeBodyPartReference>> startRecording(Callable<T> callback) throws Exception
trackSource(DataSource) calls.T - the return type of the callbackcallback - the code eligible for recordingException - if the callback escapesboolean isRecording()
@Deprecated com.atlassian.fugue.Maybe<MimeBodyPartReference> track(DataSource source)
trackSource(DataSource)source - a DataSource encapsulating the access to the image datadefault Optional<MimeBodyPartReference> trackSource(DataSource source)
source - a DataSource encapsulating the access to the image dataCopyright © 2003–2019 Atlassian. All rights reserved.