Package org.bonitasoft.engine.synchro
Class SynchroServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.synchro.AbstractSynchroService
-
- org.bonitasoft.engine.synchro.SynchroServiceImpl
-
- All Implemented Interfaces:
SynchroService
public class SynchroServiceImpl extends AbstractSynchroService
- Author:
- Emmanuel Duchastenier, Baptiste Mesta, Charles Souillard
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.synchro.AbstractSynchroService
cacheService, SYNCHRO_SERVICE_CACHE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.io.Serializable>getEventKeyAndIdMap()Maitains a map ofprotected org.slf4j.LoggergetLogger()protected java.util.concurrent.locks.LockgetServiceLock()protected java.util.Map<java.util.Map<java.lang.String,java.io.Serializable>,java.lang.String>getWaitersMap()String value is an identifier of the sempaphore for the current event.protected voidreleaseWaiter(java.lang.String semaphoreKey)java.io.SerializablewaitForEvent(java.util.Map<java.lang.String,java.io.Serializable> event, long timeout)-
Methods inherited from class org.bonitasoft.engine.synchro.AbstractSynchroService
clearAllEvents, fireEvent, getFiredAndRemoveIt, getWaiterAndRemoveIt, hasWaiters, matchedAtLeastAllExpectedEntries, throwTimeout
-
-
-
-
Method Detail
-
getWaitersMap
protected java.util.Map<java.util.Map<java.lang.String,java.io.Serializable>,java.lang.String> 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
protected java.util.Map<java.lang.String,java.io.Serializable> getEventKeyAndIdMap()
Description copied from class:AbstractSynchroServiceMaitains a map of- Specified by:
getEventKeyAndIdMapin classAbstractSynchroService
-
getServiceLock
protected java.util.concurrent.locks.Lock getServiceLock()
- Specified by:
getServiceLockin classAbstractSynchroService
-
releaseWaiter
protected void releaseWaiter(java.lang.String semaphoreKey)
- Specified by:
releaseWaiterin classAbstractSynchroService
-
waitForEvent
public java.io.Serializable waitForEvent(java.util.Map<java.lang.String,java.io.Serializable> event, long timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutException
-
-