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, throwTimeout
protected Map<Map<String,Serializable>,String> getWaitersMap()
AbstractSynchroService
getWaitersMap
in class AbstractSynchroService
protected Map<String,Serializable> getEventKeyAndIdMap()
AbstractSynchroService
getEventKeyAndIdMap
in class AbstractSynchroService
protected Lock getServiceLock()
getServiceLock
in class AbstractSynchroService
protected void releaseWaiter(String semaphoreKey)
releaseWaiter
in class AbstractSynchroService
public Serializable waitForEvent(Map<String,Serializable> event, long timeout) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © 2013 BonitaSoft. All Rights Reserved.