コード例 #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();
        }
コード例 #2
0
 internal static IReceiverState CreateInitialState(DeDuplicatingReceiverSettings settings)
 {
     // TODO: add support for StrictOrdering state
     return(new UnorderedReceiverState(settings.TimeProvider, settings.BufferSizePerSender));
 }