Exemple #1
0
 public void Shutdown(ShutdownInput input)
 {
     if (ShutdownFunc != null)
     {
         ShutdownFunc.Invoke(input);
     }
 }
Exemple #2
0
 /// <summary>
 /// This shuts down the record processor and checkpoints the specified checkpointer.
 /// </summary>
 /// <param name="input">
 /// ShutdownContext containing information such as the reason for shutting down the record processor,
 /// as well as a Checkpointer.
 /// </param>
 public void Shutdown(ShutdownInput input)
 {
     Console.Error.WriteLine("Shutting down record processor for shard: " + _kinesisShardId);
     // Checkpoint after reaching end of shard, so we can start processing data from child shards.
     if (input.Reason == ShutdownReason.TERMINATE)
     {
         Checkpoint(input.Checkpointer);
     }
 }
Exemple #3
0
        public void Shutdown(ShutdownInput input)
        {
            Console.Error.WriteLine($"Shutting down record processor for shard: {this.shardId}");

            if (input.Reason == ShutdownReason.TERMINATE)
            {
                input.Checkpointer.Checkpoint();
            }
        }
 public void Shutdown(ShutdownInput input)
 {
     if (ShutdownFunc != null)
     {
         ShutdownFunc.Invoke(input);
     }
 }
 /// <summary>
 /// This shuts down the record processor and checkpoints the specified checkpointer.
 /// </summary>
 /// <param name="input">
 /// ShutdownContext containing information such as the reason for shutting down the record processor,
 /// as well as a Checkpointer.
 /// </param>
 public void Shutdown(ShutdownInput input)
 {
     Console.Error.WriteLine("Shutting down record processor for shard: " + _kinesisShardId);
     // Checkpoint after reaching end of shard, so we can start processing data from child shards.
     if (input.Reason == ShutdownReason.TERMINATE)
     {
         Checkpoint(input.Checkpointer);
     }
 }