Show / Hide Table of Contents

Class AsynchronousBufferedTokenQueue

An Asynchronous version of BufferedTokenQueue which automatically Buffers as many Tokens as possible in a Background thread.

Inheritance
object
BaseTokenQueue
TokenQueue
BufferedTokenQueue
AsynchronousBufferedTokenQueue
Implements
ITokenQueue
Inherited Members
BufferedTokenQueue._bufferAmount
BufferedTokenQueue.InitialiseBuffer()
BufferedTokenQueue.InitialiseBuffer(int)
TokenQueue._tokens
TokenQueue.Enqueue(IToken)
TokenQueue.Clear()
TokenQueue.Count
TokenQueue.Tokens
TokenQueue.PrintTrace(IToken)
BaseTokenQueue._tokeniser
BaseTokenQueue._tracing
BaseTokenQueue._lasttokentype
BaseTokenQueue.Tokeniser
BaseTokenQueue.Tracing
BaseTokenQueue.LastTokenType
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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

| Edit this page View Source

AsynchronousBufferedTokenQueue()

Creates a new Asynchronous Buffered Queue.

Declaration
public AsynchronousBufferedTokenQueue()
| Edit this page View Source

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 Source

BufferInternal()

Internal Helper Method which starts the Background Buffering if not already running.

Declaration
protected override void BufferInternal()
Overrides
BufferedTokenQueue.BufferInternal()
| Edit this page View Source

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
BufferedTokenQueue.Dequeue()
| Edit this page View Source

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
BufferedTokenQueue.Peek()

Implements

ITokenQueue

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • AsynchronousBufferedTokenQueue()
    • AsynchronousBufferedTokenQueue(ITokeniser)
  • Methods
    • BufferInternal()
    • Dequeue()
    • Peek()
  • Implements
  • Extension Methods
Back to top Generated by DocFX