public class SynchroServiceImpl extends AbstractSynchroService
cacheService, logger, SYNCHRO_SERVICE_CACHE| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Serializable> |
getEventKeyAndIdMap()
Maitains a map of
|
protected Lock |
getServiceLock() |
protected Map<Map<String,Serializable>,String> |
getWaitersMap()
String value is an identifier of the sempaphore for the current event.
|
protected void |
releaseWaiter(String semaphoreKey) |
Serializable |
waitForEvent(Map<String,Serializable> event,
long timeout) |
clearAllEvents, fireEvent, getFiredAndRemoveIt, getWaiterAndRemoveIt, hasWaiters, matchedAtLeastAllExpectedEntries, throwTimeoutprotected Map<Map<String,Serializable>,String> getWaitersMap()
AbstractSynchroServicegetWaitersMap in class AbstractSynchroServiceprotected Map<String,Serializable> getEventKeyAndIdMap()
AbstractSynchroServicegetEventKeyAndIdMap in class AbstractSynchroServiceprotected Lock getServiceLock()
getServiceLock in class AbstractSynchroServiceprotected void releaseWaiter(String semaphoreKey)
releaseWaiter in class AbstractSynchroServicepublic Serializable waitForEvent(Map<String,Serializable> event, long timeout) throws InterruptedException, TimeoutException
InterruptedExceptionTimeoutExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.