Method WaitForGeneration
WaitForGeneration(Int64)
Waits for the target generation to become visible in the searcher. If the current searcher is older than the target generation, this method will block until the searcher is reopened, by another via MaybeRefresh() or until the ReferenceManager<G> is closed.
Declaration
public virtual void WaitForGeneration(long targetGen)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | targetGen | The generation to wait for |
WaitForGeneration(Int64, Int32)
Waits for the target generation to become visible in the searcher, up to a maximum specified milli-seconds. If the current searcher is older than the target generation, this method will block until the searcher has been reopened by another thread via MaybeRefresh(), the given waiting time has elapsed, or until the ReferenceManager<G> is closed.
NOTE: if the waiting time elapses before the requested target generation is available the current SearcherManager is returned instead.
Declaration
public virtual bool WaitForGeneration(long targetGen, int maxMS)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | targetGen | The generation to wait for |
System.Int32 | maxMS | Maximum milliseconds to wait, or -1 to wait indefinitely |
Returns
Type | Description |
---|---|
System.Boolean |
|