Class AsynchronousBufferedTokenQueue
An Asynchronous version of BufferedTokenQueue which automatically Buffers as many Tokens as possible in a Background thread.
Inheritance
Implements
Inherited Members
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()
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.
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. |
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.
Methods
| Improve this Doc View SourceBufferInternal()
Internal Helper Method which starts the Background Buffering if not already running.
Declaration
protected override void BufferInternal()
Overrides
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.
Dequeue()
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
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.
Peek()
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. |
Overrides
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.