@Beta
public interface ISynchronizable<Synchronizable>
ISynchronizable expose a lock object
that allows to guard against concurrent modifications.| Modifier and Type | Method and Description |
|---|---|
<Result> Result |
execute(IUnitOfWork<Result,? super Synchronizable> unit)
Execute the unit of work in a context that allows for modification.
|
java.lang.Object |
getLock()
Exposes the coarse grained lock for this
ISynchronizable. |
java.lang.Object getLock()
ISynchronizable.<Result> Result execute(IUnitOfWork<Result,? super Synchronizable> unit) throws java.lang.Exception
unit - the action to perform. May not be nulljava.lang.Exception - the exception that was thrown by the unit.