Ejemplo n.º 1
0
 public void PublishEvents <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, int batchStartsAt, int batchSize, TArg[] arg0)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Publish a batch of events to the ring buffer.
 /// </summary>
 /// <param name="eventTranslator">the translator that will load data into the event</param>
 /// <param name="arg">An array single arguments to load into the events. One Per event.</param>
 public void PublishEvent <A>(IEventTranslatorOneArg <T, A> eventTranslator, A[] arg) => _ringBuffer.PublishEvents(eventTranslator, arg);
Ejemplo n.º 3
0
 public bool TryPublishEvents <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, TArg[] arg0)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public void PublishEvent <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, TArg arg0)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public void PublishEvents <A>(IEventTranslatorOneArg <T, A> translator, A[] arg0)
 {
     PublishEvents(translator, 0, arg0.Length, arg0);
 }
Ejemplo n.º 6
0
 public bool TryPublishEvents <A>(IEventTranslatorOneArg <T, A> translator, A[] arg0)
 {
     return(TryPublishEvents(translator, 0, arg0.Length, arg0));
 }
Ejemplo n.º 7
0
 public bool TryPublishEvents <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, TArg[] arg0)
 {
     return(TryPublishEvents(translator, 0, arg0.Length, arg0));
 }
Ejemplo n.º 8
0
        public void PublishEvent <A>(IEventTranslatorOneArg <T, A> translator, A arg0)
        {
            long sequence = _sequencerDispatcher.Sequencer.Next();

            TranslateAndPublish(translator, sequence, arg0);
        }
Ejemplo n.º 9
0
 public void PublishEvents <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, TArg[] arg0)
 {
     PublishEvents(translator, 0, arg0.Length, arg0);
 }
Ejemplo n.º 10
0
        public void PublishEvent <TArg>(IEventTranslatorOneArg <TEvent, TArg> translator, TArg arg0)
        {
            var sequence = Sequencer.Next();

            TranslateAndPublish(translator, sequence, arg0);
        }
Ejemplo n.º 11
0
 public EventProducerWithTranslator(RingBuffer <TheRingBufferSlotType> rb)
 {
     _ringbuffer = rb;
     _translator = new AssignmentTranslator();
 }
Ejemplo n.º 12
0
 public Producer(RingBuffer <TheRingBufferSlotType> targetRingBuffer)
 {
     _ringbuffer = targetRingBuffer;
     _translator = new AssignmentTranslator();
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Publish an event to the ring buffer.
 /// </summary>
 /// <typeparam name="A"></typeparam>
 /// <param name="eventTranslator"> the translator that will load data into the event.</param>
 /// <param name="arg"> A single argument to load into the event</param>
 public void PublishEvent <A>(IEventTranslatorOneArg <T, A> eventTranslator, A arg)
 {
     ringBuffer.PublishEvent(eventTranslator, arg);
 }