Exemplo n.º 1
0
        private void Sweep(long currentTime)
        {
            var removed = new ArrayDeque<object>();
            foreach (var entry in subViewPerKey) {
                var age = currentTime - entry.Value.LastUpdateTime;
                if (age > ViewFactory.ReclaimMaxAge) {
                    removed.Add(entry.Key);
                }
            }

            foreach (var key in removed) {
                var entry = subViewPerKey.Delete(key);
                GroupByViewUtil.RemoveSubview(
                    entry.Subview,
                    new AgentInstanceStopServices(AgentInstanceContext.AgentInstanceContext));
            }
        }
Exemplo n.º 2
0
 public void Stop(AgentInstanceStopServices services)
 {
     foreach (KeyValuePair<object, View> entry in subViewPerKey) {
         GroupByViewUtil.RemoveSubview(entry.Value, services);
     }
 }
Exemplo n.º 3
0
 public void Stop(AgentInstanceStopServices services)
 {
     foreach (var entry in subViewPerKey) {
         GroupByViewUtil.RemoveSubview(entry.Value.Subview, services);
     }
 }