internal DefaultKclProcess(IRecordProcessor processor, IoHandler iohandler) { _processor = processor; _iohandler = iohandler; _checkpointer = new InternalCheckpointer(this); ConfigureStateMachine(); }
internal DefaultKclProcess(IRecordProcessor processor, IoHandler iohandler) { _processor = processor; _iohandler = iohandler; _checkpointer = new InternalCheckpointer(this); ConfigureStateMachine(); }
public DefaultShutdownInput(ShutdownReason reason, Checkpointer checkpointer) { _reason = reason; _checkpointer = checkpointer; }
public DefaultProcessRecordsInput(List <Record> records, Checkpointer checkpointer) { _records = records; _checkpointer = checkpointer; }
public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { processor.LeaseLost(new DefaultLeaseLostInput()); }
public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { processor.ShutdownRequested(new DefaultShutdownRequestedInput(checkpointer)); }
public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { processor.ProcessRecords(new DefaultProcessRecordsInput(this, checkpointer)); }
public DefaultShutdownInput(ShutdownReason reason, Checkpointer checkpointer) { _reason = reason; _checkpointer = checkpointer; }
internal DefaultKclProcess(IShardRecordProcessor processor, IoHandler iohandler) { _processor = processor; _iohandler = iohandler; _checkpointer = new InternalCheckpointer(this); }
public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { processor.Initialize(new DefaultInitializationInput(this)); }
public DefaultShutdownRequestedInput(Checkpointer checkpointer) { Checkpointer = checkpointer; }
public DefaultShardEndedInput(Checkpointer checkpointer) { Checkpointer = checkpointer; }
public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { throw new NotSupportedException("CheckpointAction should never be dispatched, but handled in line"); }
public DefaultProcessRecordsInput(ProcessRecordsAction processRecordsAction, Checkpointer checkpointer) { Records = processRecordsAction.Records; MillisBehindLatest = processRecordsAction.MillisBehindLatest; Checkpointer = checkpointer; }
public DefaultProcessRecordsInput(List<Record> records, Checkpointer checkpointer) { _records = records; _checkpointer = checkpointer; }
public virtual void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer) { throw new NotImplementedException("Actions need to implement Dispatch, this likely indicates a bug."); }
/// <summary> /// This checkpoints the specified checkpointer with retries. /// </summary> /// <param name="checkpointer">The checkpointer used to do checkpoints.</param> private void Checkpoint(Checkpointer checkpointer) { Console.Error.WriteLine("Checkpointing shard " + _kinesisShardId); // You can optionally provide an error handling delegate to be invoked when checkpointing fails. // The library comes with a default implementation that retries for a number of times with a fixed // delay between each attempt. If you do not provide an error handler, the checkpointing operation // will not be retried, but processing will continue. checkpointer.Checkpoint(RetryingCheckpointErrorHandler.Create(NumRetries, Backoff)); }