Click or drag to resize

AsynchronousBufferedTokenQueue Class

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

Namespace:  VDS.RDF.Parsing.Tokens
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class AsynchronousBufferedTokenQueue : BufferedTokenQueue

The AsynchronousBufferedTokenQueue type exposes the following members.

Constructors
  NameDescription
Public methodAsynchronousBufferedTokenQueue
Creates a new Asynchronous Buffered Queue.
Public methodAsynchronousBufferedTokenQueue(ITokeniser)
Creates a new Asynchronous Buffered Queue with the given Tokeniser.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of Tokens in the Queue.
(Inherited from TokenQueue.)
Public propertyLastTokenType
Gets the Token Type of the last Token dequeued.
(Inherited from BaseTokenQueue.)
Public propertyTokeniser
Sets the Tokeniser used by the Queue.
(Inherited from BaseTokenQueue.)
Public propertyTokens
Gets the underlying Queue of Tokens.
(Inherited from TokenQueue.)
Public propertyTracing
Gets/Sets Tracing for the Token Queue.
(Inherited from BaseTokenQueue.)
Top
Methods
  NameDescription
Protected methodBufferInternal
Internal Helper Method which starts the Background Buffering if not already running.
(Overrides BufferedTokenQueueBufferInternal.)
Public methodClear
Empties the Token Queue.
(Inherited from TokenQueue.)
Public methodDequeue
Gets the next Token in the Queue and removes it from the Queue.
(Overrides BufferedTokenQueueDequeue.)
Public methodEnqueue
Adds a Token to the end of the Queue.
(Inherited from TokenQueue.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialiseBuffer
Causes the Buffer to be filled using the Default Buffering level of 10.
(Inherited from BufferedTokenQueue.)
Public methodInitialiseBuffer(Int32)
Causes the Buffer to be filled and sets the Buffering level for the Queue.
(Inherited from BufferedTokenQueue.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPeek
Gets the next Token in the Queue without removing it from the Queue.
(Overrides BufferedTokenQueuePeek.)
Protected methodPrintTrace
Internal Helper Method for Tokeniser Tracing.
(Inherited from TokenQueue.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_bufferAmount
Variable storing the Buffer Size.
(Inherited from BufferedTokenQueue.)
Protected field_lasttokentype
Type of Last Token dequeued.
(Inherited from BaseTokenQueue.)
Protected field_tokeniser
Tokeniser used to fill the Token Queue.
(Inherited from BaseTokenQueue.)
Protected field_tokens
Internal Queue object which this class is a wrapper around.
(Inherited from TokenQueue.)
Protected field_tracing
Variable indicating whether Tokeniser Tracing is enabled.
(Inherited from BaseTokenQueue.)
Top
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.
See Also