org.apache.clerezza.rdf.core.access
Interface LockableMGraph

All Superinterfaces:
Collection<Triple>, Iterable<Triple>, MGraph, TripleCollection
All Known Implementing Classes:
LockableMGraphWrapper, SecuredMGraph, WriteBlockedMGraph

public interface LockableMGraph
extends MGraph

Represents an MGraph that can be locked for reading/writing.

Author:
rbn

Method Summary
 ReadWriteLock getLock()
          The lock provided by this methods allows to create read- and write-locks that span individual method calls.
 
Methods inherited from interface org.apache.clerezza.rdf.core.MGraph
equals, getGraph
 
Methods inherited from interface org.apache.clerezza.rdf.core.TripleCollection
addGraphListener, addGraphListener, filter, removeGraphListener
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

getLock

ReadWriteLock getLock()
The lock provided by this methods allows to create read- and write-locks that span individual method calls. Having a read locks prevents other threads from writing to this MGraph, having a write-lock prevents other threads from reading and writing.

Returns:
the lock of this MGraph


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.