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