Esempio n. 1
0
 /// <summary>
 ///     Ctor - use for the first and unused latch to indicate completion.
 /// </summary>
 /// <param name="factory">the latch factory</param>
 public InsertIntoLatchSpin(InsertIntoLatchFactory factory)
 {
     _factory = factory;
     _isCompleted = true;
     _earlier = null;
     _msecTimeout = 0;
 }
Esempio n. 2
0
 /// <summary>
 ///     Ctor.
 /// </summary>
 /// <param name="factory">the latch factory</param>
 /// <param name="earlier">the latch before this latch that this latch should be waiting for</param>
 /// <param name="msecTimeout">the timeout after which delivery occurs</param>
 /// <param name="payload">the payload is an event to deliver</param>
 public InsertIntoLatchSpin(
     InsertIntoLatchFactory factory,
     InsertIntoLatchSpin earlier,
     long msecTimeout,
     EventBean payload)
 {
     _factory = factory;
     _earlier = earlier;
     _msecTimeout = msecTimeout;
     _payload = payload;
 }
Esempio n. 3
0
 /// <summary>
 ///     Ctor - use for the first and unused latch to indicate completion.
 /// </summary>
 /// <param name="factory">the latch factory</param>
 public InsertIntoLatchWait(InsertIntoLatchFactory factory)
 {
     _isCompleted = true;
     _earlier = null;
     _msecTimeout = 0;
 }