|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.commons.coordinate.cluster.ClusterSyncer
public class ClusterSyncer
Description:
cluster mode implementation of the Syncer
Initial Date: 21.09.2007
| Constructor Summary | |
|---|---|
ClusterSyncer()
|
|
| Method Summary | ||
|---|---|---|
void |
assertAlreadyDoInSyncFor(OLATResourceable ores)
Check if already in synchronized block for certain olat-resource |
|
|
doInSync(OLATResourceable ores,
SyncerCallback<T> callback)
guarantees that the code r is running serialized in regard to other code with the same resourceable |
|
void |
doInSync(OLATResourceable ores,
SyncerExecutor executor)
same as doInSync(OLATResourceable ores, SyncerCallback, but without return object. |
|
void |
setExecutionTimeThreshold(int executionTimeThreshold)
[used by spring] |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterSyncer()
| Method Detail |
|---|
public <T> T doInSync(OLATResourceable ores,
SyncerCallback<T> callback)
Syncer
doInSync in interface Syncerores - the resourceable to sync uponcallback - 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)
Syncer.doInSync(org.olat.core.id.OLATResourceable, org.olat.core.util.coordinate.SyncerCallback)
public void doInSync(OLATResourceable ores,
SyncerExecutor executor)
SyncerdoInSync(OLATResourceable ores, SyncerCallback action) , but without return object.
doInSync in interface SyncerSyncer.doInSync(org.olat.core.id.OLATResourceable, org.olat.core.util.coordinate.SyncerExecutor)public void assertAlreadyDoInSyncFor(OLATResourceable ores)
Syncer
assertAlreadyDoInSyncFor in interface SyncerSyncer.assertAlreadyDoInSyncFor(org.olat.core.id.OLATResourceable)public void setExecutionTimeThreshold(int executionTimeThreshold)
executionTimeThreshold -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||