@Immutable public interface MkStorage
Modifier and Type | Interface and Description |
---|---|
static class |
MkStorage.InFile
In file.
|
static class |
MkStorage.Synced
Syncronized.
|
@NotNull(message="xml is never NULL") com.jcabi.xml.XML xml() throws IOException
IOException
- If there is any I/O problem, or if the current
storage is locked by another thread.void apply(@NotNull(message="dirs can\'t be NULL") Iterable<org.xembly.Directive> dirs) throws IOException
dirs
- DirectivesIOException
- If there is any I/O problem, or if the current
storage is locked by another thread.void lock() throws IOException
If the lock is available, grant it
to the calling thread and block all operations from other threads.
If not available, wait for the holder of the lock to release it with
unlock()
before any other operations can be performed.
Locking behavior is reentrant, which means a thread can invoke
lock()
multiple times, where a hold count is maintained.
IOException
- If there is any I/O problemvoid unlock() throws IOException
Locking behavior is reentrant, thus if the thread invoked
lock()
multiple times, the hold count is decremented. If the
hold count reaches 0, the lock is released.
If the current thread does not hold the lock, an
IllegalMonitorStateException
will be thrown.
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.