public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     processor.LeaseLost(new DefaultLeaseLostInput());
 }
 public virtual void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     throw new NotImplementedException("Actions need to implement Dispatch, this likely indicates a bug.");
 }
 public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     processor.ProcessRecords(new DefaultProcessRecordsInput(this, checkpointer));
 }
 public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     processor.ShutdownRequested(new DefaultShutdownRequestedInput(checkpointer));
 }
Exemplo n.º 5
0
 internal static KclProcess Create(IShardRecordProcessor recordProcessor, IoHandler ioHandler)
 {
     return(new DefaultKclProcess(recordProcessor, ioHandler));
 }
Exemplo n.º 6
0
 public static KclProcess Create(IShardRecordProcessor recordProcessor)
 {
     return(Create(recordProcessor, new IoHandler()));
 }
Exemplo n.º 7
0
 public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     processor.Initialize(new DefaultInitializationInput(this));
 }
Exemplo n.º 8
0
 internal DefaultKclProcess(IShardRecordProcessor processor, IoHandler iohandler)
 {
     _processor    = processor;
     _iohandler    = iohandler;
     _checkpointer = new InternalCheckpointer(this);
 }
Exemplo n.º 9
0
 public override void Dispatch(IShardRecordProcessor processor, Checkpointer checkpointer)
 {
     throw new  NotSupportedException("CheckpointAction should never be dispatched, but handled in line");
 }