Package org.bonitasoft.engine.synchro
Class SynchroServiceImpl
java.lang.Object
org.bonitasoft.engine.synchro.AbstractSynchroService
org.bonitasoft.engine.synchro.SynchroServiceImpl
- All Implemented Interfaces:
SynchroService
- Author:
- Emmanuel Duchastenier, Baptiste Mesta, Charles Souillard
-
Field Summary
Fields inherited from class org.bonitasoft.engine.synchro.AbstractSynchroService
cacheService, SYNCHRO_SERVICE_CACHE -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,Serializable> Maitains a map of <EventKey, ID of the object being waited for>protected org.slf4j.Loggerprotected Lockprotected Map<Map<String,Serializable>, String> String value is an identifier of the sempaphore for the current event.protected voidreleaseWaiter(String semaphoreKey) waitForEvent(Map<String, Serializable> event, long timeout) Methods inherited from class org.bonitasoft.engine.synchro.AbstractSynchroService
clearAllEvents, fireEvent, getFiredAndRemoveIt, getWaiterAndRemoveIt, hasWaiters, matchedAtLeastAllExpectedEntries, throwTimeout
-
Method Details
-
getWaitersMap
Description copied from class:AbstractSynchroServiceString value is an identifier of the sempaphore for the current event.- Specified by:
getWaitersMapin classAbstractSynchroService
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractSynchroService
-
getEventKeyAndIdMap
Description copied from class:AbstractSynchroServiceMaitains a map of <EventKey, ID of the object being waited for>- Specified by:
getEventKeyAndIdMapin classAbstractSynchroService
-
getServiceLock
- Specified by:
getServiceLockin classAbstractSynchroService
-
releaseWaiter
- Specified by:
releaseWaiterin classAbstractSynchroService
-
waitForEvent
public Serializable waitForEvent(Map<String, Serializable> event, long timeout) throws InterruptedException, TimeoutException- Throws:
InterruptedExceptionTimeoutException
-