Class AsynchronousBufferedTokenQueue
An Asynchronous version of BufferedTokenQueue which automatically Buffers as many Tokens as possible in a Background thread.
Inheritance
System.Object
AsynchronousBufferedTokenQueue
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRDF.dll
Syntax
public class AsynchronousBufferedTokenQueue : BufferedTokenQueue, ITokenQueue
Remarks
Periodic instablility is fixed to the best of my knowledge, it is still recommended to use a BufferedTokenQueue or the basic TokenQueue. This implementation offers little/no performance improvement over the other types of Token Queue.
Constructors
| Improve this Doc View SourceAsynchronousBufferedTokenQueue()
Creates a new Asynchronous Buffered Queue.
Declaration
public AsynchronousBufferedTokenQueue()
AsynchronousBufferedTokenQueue(ITokeniser)
Creates a new Asynchronous Buffered Queue with the given Tokeniser.
Declaration
public AsynchronousBufferedTokenQueue(ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITokeniser | tokeniser | Tokeniser to Buffer. |
Methods
| Improve this Doc View SourceBufferInternal()
Internal Helper Method which starts the Background Buffering if not already running.
Declaration
protected override void BufferInternal()
Overrides
| Improve this Doc View SourceDequeue()
Gets the next Token in the Queue and removes it from the Queue.
Declaration
public override IToken Dequeue()
Returns
Type | Description |
---|---|
IToken | Token at the front of the Queue. |
Overrides
| Improve this Doc View SourcePeek()
Gets the next Token in the Queue without removing it from the Queue.
Declaration
public override IToken Peek()
Returns
Type | Description |
---|---|
IToken | Token at the front of the Queue. |