public interface MimeBodyPartRecorder
track(javax.activation.DataSource) call has to be done within the closure given to
#record(java.util.concurrent.Callable) should be
supported in the way that they start a new, isolated recording whilst remembering the outer tracking calls.
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|
Activate the recorder so that it can record
Track the given image source.
<T> com.atlassian.fugue.Pair<com.atlassian.fugue.Maybe<T>,Iterable<MimeBodyPartReference>> record(Callable<T> callback) throws Exception
T- the return type of the callback
callback- the code eligible for recording
Exception- if the callback escapes
Copyright © 2003–2017 Atlassian. All rights reserved.