|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Syncer
Description:
interface for synchronizing access to protected regions
Initial Date: 17.09.2007
| Method Summary | ||
|---|---|---|
void |
assertAlreadyDoInSyncFor(OLATResourceable ores)
Check if already in synchronized block for certain olat-resource |
|
|
doInSync(OLATResourceable ores,
SyncerCallback<T> action)
guarantees that the code r is running serialized in regard to other code with the same resourceable |
|
void |
doInSync(OLATResourceable ores,
SyncerExecutor action)
same as doInSync(OLATResourceable ores, SyncerCallback, but without return object. |
|
| Method Detail |
|---|
<T> T doInSync(OLATResourceable ores,
SyncerCallback<T> action)
ores - the resourceable to sync uponaction - the code to be executed in the protected region (it is executed synchronously, that is, within the same thread as the caller of this method)
void doInSync(OLATResourceable ores,
SyncerExecutor action)
doInSync(OLATResourceable ores, SyncerCallback action) , but without return object.
ores - action - void assertAlreadyDoInSyncFor(OLATResourceable ores)
ores -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||