Exemple #1
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="factory">The 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;
 }
Exemple #2
0
 /// <summary>Ctor - use for the first and unused latch to indicate completion. </summary>
 public InsertIntoLatchSpin(InsertIntoLatchFactory factory)
 {
     _factory     = factory;
     _isCompleted = true;
     _earlier     = null;
     _msecTimeout = 0;
 }
Exemple #3
0
 /// <summary>
 /// Ctor - use for the first and unused latch to indicate completion.
 /// </summary>
 /// <param name="factory">The factory.</param>
 public InsertIntoLatchWait(InsertIntoLatchFactory factory)
 {
     _isCompleted = true;
     _earlier     = null;
     _msecTimeout = 0;
 }