Example #1
0
 private void EnterInitial()
 {
     _completed = false;
     _partitionStateCache.Initialize();
     _projectionProcessingPhase = null;
     _checkpointManager         = _projectionProcessingPhases[0].CheckpointManager;
     _checkpointManager.Initialize();
     _checkpointReader.Initialize();
     _tickPending = false;
     if (_requiresRootPartition)
     {
         _partitionStateCache.CacheAndLockPartitionState("", new PartitionState("", null, CheckpointTag.Empty), null);
     }
     // NOTE: this is to workaround exception in GetState requests submitted by client
 }
Example #2
0
 private void EnterInitial()
 {
     _handlerPartition = null;
     foreach (var requestId in _loadStateRequests)
     {
         _readDispatcher.Cancel(requestId);
     }
     _loadStateRequests.Clear();
     _partitionStateCache.Initialize();
     _processingQueue.Initialize();
     _checkpointManager.Initialize();
     _tickPending = false;
     _partitionStateCache.CacheAndLockPartitionState("", new PartitionStateCache.State("", null), null);
     _expectedSubscriptionMessageSequenceNumber = -1; // this is to be overridden when subscribing
     // NOTE: this is to workaround exception in GetState requests submitted by client
 }