19 using System.Collections.Generic;
20 using System.Runtime.Remoting.Lifetime;
23 namespace Lucene.Net.Distributed.Search
33 private static readonly
int TIME_FACTOR = 30;
34 private static int initialLeaseTime = SupportClass.AppSettings.Get(
"LeaseTime", -1);
35 private static TimeSpan leaseTimeSpan;
53 public override object InitializeLifetimeService()
62 ILease oLease = (ILease) base.InitializeLifetimeService();
63 if (oLease.CurrentState == LeaseState.Initial)
77 ILease oLease = (ILease)this.GetLifetimeService();
85 public static TimeSpan GetLeaseTimeSpan()
94 public static int GetInitialLeaseTime()