Class InsertIntoLatchFactory
java.lang.Object
com.espertech.esper.common.internal.statement.insertintolatch.InsertIntoLatchFactory
Class to hold a current latch per statement that uses an insert-into stream (per statement and insert-into stream
relationship).
-
Constructor Summary
ConstructorDescriptionInsertIntoLatchFactory
(String name, boolean stateless, long msecWait, Locking locking, TimeSourceService timeSourceService) Ctor. -
Method Summary
-
Constructor Details
-
InsertIntoLatchFactory
public InsertIntoLatchFactory(String name, boolean stateless, long msecWait, Locking locking, TimeSourceService timeSourceService) Ctor.- Parameters:
name
- the factory namemsecWait
- the number of milliseconds latches will await maximuallylocking
- the blocking strategy to employtimeSourceService
- time source providerstateless
- indicator whether stateless
-
-
Method Details
-
newLatch
Returns a new latch.Need not be synchronized as there is one per statement and execution is during statement lock.
- Parameters:
payload
- is the object returned by the await.- Returns:
- latch
-
getTimeSourceService
-
getName
-