Click or drag to resize

ThreadSafeTripleCollection Class

Thread Safe decorator for triple collections.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
public class ThreadSafeTripleCollection : WrapperTripleCollection

The ThreadSafeTripleCollection type exposes the following members.

Public methodThreadSafeTripleCollection
Creates a new thread safe triple collection which wraps a new instance of the default unindexed TripleCollection.
Public methodThreadSafeTripleCollection(BaseTripleCollection)
Creates a new thread safe triple collection which wraps the provided triple collection.
Protected methodAdd
Adds a Triple to the Collection.
(Overrides WrapperTripleCollectionAdd(Triple).)
Public methodContains
Determines whether a given Triple is in the Triple Collection.
(Overrides WrapperTripleCollectionContains(Triple).)
Protected methodDelete
Deletes a Triple from the Collection.
(Overrides WrapperTripleCollectionDelete(Triple).)
Public methodDispose
Disposes of a Triple Collection.
(Overrides WrapperTripleCollectionDispose.)
Protected methodEnterReadLock
Enters the read lock.
Protected methodEnterWriteLock
Enters the write lock.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExitReadLock
Exists the read lock.
Protected methodExitWriteLock
Exists the write lock.
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 methodGetEnumerator
Gets the Enumerator for the Collection.
(Overrides WrapperTripleCollectionGetEnumerator.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRaiseTripleAdded
Helper method for raising the Triple Added event.
(Inherited from BaseTripleCollection.)
Protected methodRaiseTripleRemoved
Helper method for raising the Triple Removed event.
(Inherited from BaseTripleCollection.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWithObject
Gets all triples with the given Object.
(Overrides WrapperTripleCollectionWithObject(INode).)
Public methodWithPredicate
Gets all triples with the given predicate.
(Overrides WrapperTripleCollectionWithPredicate(INode).)
Public methodWithPredicateObject
Gets all triples with the given predicate object.
(Overrides WrapperTripleCollectionWithPredicateObject(INode, INode).)
Public methodWithSubject
Gets all the triples with the given subject.
(Overrides WrapperTripleCollectionWithSubject(INode).)
Public methodWithSubjectObject
Gets all the triples with the given subject and object.
(Overrides WrapperTripleCollectionWithSubjectObject(INode, INode).)
Public methodWithSubjectPredicate
Gets all triples with the given subject and predicate.
(Overrides WrapperTripleCollectionWithSubjectPredicate(INode, INode).)
Public eventTripleAdded
Event which occurs when a Triple is added to the Collection
(Inherited from BaseTripleCollection.)
Public eventTripleRemoved
Event which occurs when a Triple is removed from the Collection
(Inherited from BaseTripleCollection.)
Protected field_triples
Underlying Triple Collection.
(Inherited from WrapperTripleCollection.)
Depending on the platform this either uses ReaderWriterLockSlim to provide MRSW concurrency or it uses Monitor to provide exclusive access concurrency, either way usage is thread safe.
Thread Safety
This decorator provides thread safe access to any underlying triple collection.
See Also