Ejemplo n.º 1
0
        protected DeDuplicatingReceiveActor(DeDuplicatingReceiverSettings settings)
        {
            // force the serializer settings to be injected, if they haven't been already
            ExtraPersistence.For(Context.System);

            Settings       = settings;
            _receiverState = CreateInitialState(settings);
            _pruneTask     = CreatePruneTask();

            BuiltInRecovers();
            BuiltInCommands();
        }
Ejemplo n.º 2
0
 internal static IReceiverState CreateInitialState(DeDuplicatingReceiverSettings settings)
 {
     // TODO: add support for StrictOrdering state
     return(new UnorderedReceiverState(settings.TimeProvider, settings.BufferSizePerSender));
 }