public virtual void Stop() { if (_timer == null) { return; } _timer.Stop(); _timer = null; }
public virtual void Start() { if (_timer != null) { return; } if (!_container.ConfigImpl.WeakReferences()) { return; } if (_container.ConfigImpl.WeakReferenceCollectionInterval() <= 0) { return; } _timer = new SimpleTimer(new EnabledWeakReferenceSupport.Collector(this), _container .ConfigImpl.WeakReferenceCollectionInterval()); _container.ThreadPool().Start("db4o WeakReference collector", _timer); }
public _IClosure4_37(SimpleTimer _enclosing) { this._enclosing = _enclosing; }
public ClientHeartbeat(ClientObjectContainer container) { _container = container; _timer = new SimpleTimer(this, Frequency(container.ConfigImpl)); }