@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.
|
Object |
getLock()
Exposes the coarse grained lock for this
ISynchronizable. |
Object getLock()
ISynchronizable.<Result> Result execute(IUnitOfWork<Result,? super Synchronizable> unit) throws Exception
unit - the action to perform. May not be nullException - the exception that was thrown by the unit.Copyright © 2015. All Rights Reserved.