Queues and runs operations such as AddDocument asynchronously, use the static methods, not a constructor.
Declaration Syntax
C# | Visual Basic |
public class AsynchronousQueue
Public Class AsynchronousQueue
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Interrupt(Configuration) |
Writes a file named "interrupt" to the index directory to stop the asychronous indexing.
The queue is reloaded from the disk when the next queued item is added.
| |
IsQueueInterruptFlagged(Configuration) | ||
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
QueueForIndexing(Document, EventHandler) |
Adds the document to the queue for adding to the index - the document will be indexed asynchronously as soon as possible.
| |
QueueForRemoval(Document, EventHandler) |
Adds the document to the queue for removing from the index - the document will be removed asynchronously as soon as possible.
| |
QueueSize |
Current queue size (remaining items).
| |
Resume(Configuration, EventHandler) | ||
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
This class will create and close a DocumentIndex instance as required, it is important therefore that no other DocumentIndex instance is open on the same index directory while the queue has items.
Typical usage is to call AsynchronousQueue.QueueForIndexing with the document and an EventHandler delegate, please see the Help example on programmatic importing.
Inheritance Hierarchy
Object | |
AsynchronousQueue |
Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2022.8.22.610