Пример #1
0
 public override void Start()
 {
     _highCount = 0;
     _executor  = Executors.newSingleThreadExecutor(new NamedThreadFactory(this.GetType().Name));
     _executor.submit(_events);
     _events.awaitStartup();
 }
Пример #2
0
 protected internal override void DoStart()
 {
     lock (this)
     {
         _asyncLogProcessingExecutor.submit(_asyncEventProcessor);
         _asyncEventProcessor.awaitStartup();
     }
 }