public class CommitMetadata
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
commitProperties() |
static <R,E extends java.lang.Exception> |
withCommitProperties(java.util.Map<java.lang.String,java.lang.String> properties,
java.util.concurrent.Callable<R> callable,
java.lang.Class<E> exClass)
running the code wrapped as a caller, and any snapshot committed within the callable object
will be attached with the metadata defined in properties
|
public static <R,E extends java.lang.Exception> R withCommitProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.util.concurrent.Callable<R> callable, java.lang.Class<E> exClass) throws E extends java.lang.Exception
properties
- extra commit metadata to attach to the snapshot committed within callablecallable
- the code to be executedexClass
- the expected type of exception which would be thrown from callableE extends java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.String> commitProperties()