public class DBaseImpl<R,T> extends co.paralleluniverse.db.tree.AbstractDBase<R,T> implements DBase<T>
| Constructor and Description |
|---|
DBaseImpl(co.paralleluniverse.db.tree.Tree<R,T> tree) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTXNListener(TXNListener<T> listener) |
Collection<Object> |
createCollection() |
protected co.paralleluniverse.common.monitoring.FlightRecorder |
getFlightRecorder() |
String |
getName()
Returns the SpaceBase store’s name.
|
int |
getQueueLength() |
protected co.paralleluniverse.db.tree.ForkJoinScheduler<R,?> |
getScheduler() |
protected boolean |
isAsync() |
boolean |
isCurrentStrandAsynchronous()
Tests whether this strand was put in
asynchronous mode. |
void |
joinAllPendingOperations()
If this store has been configured as parallel and
setCurrentThreadAsynchronous(true) has been called on this thread, this method awaits the completion of all, yet-uncompleted operations. |
protected void |
joinSync(co.paralleluniverse.db.tree.Scheduler.Job<R> job) |
protected void |
joinSync(Sync sync) |
protected Sync |
perhapsJoin(co.paralleluniverse.db.tree.Scheduler.Job<R> job) |
protected Sync |
perhapsJoin(Sync sync) |
void |
prettyPrint(PrintStream out) |
void |
removeTXNListener(TXNListener<T> listener) |
protected void |
setCurrentBlock(TXN<T> txn) |
void |
setCurrentStrandAsynchronous(boolean value)
If this store has been configured as parallel, calling this method with the value
true puts this strand in asynchronous mode, i.e. |
void |
shutdown() |
protected QuasarSync |
sync() |
protected Sync |
sync(co.paralleluniverse.db.tree.Scheduler.Job job) |
void |
unregisterMBeans() |
protected void |
verifyNotInBlock() |
protected co.paralleluniverse.db.tree.ForkJoinScheduler<R,?> getScheduler()
protected co.paralleluniverse.common.monitoring.FlightRecorder getFlightRecorder()
public boolean isCurrentStrandAsynchronous()
DBaseTests whether this strand was put in asynchronous mode.
isCurrentStrandAsynchronous in interface DBase<T>true for asynchronous mode, false for synchronous mode.public void setCurrentStrandAsynchronous(boolean value)
DBaseIf this store has been configured as parallel, calling this method with the value true puts this strand in asynchronous mode, i.e. methods of this SpaceBase return immediately, possibly before completion. If this store has not been configured as parallel, calling this method has no effect.
setCurrentStrandAsynchronous in interface DBase<T>value - true for asynchronous mode, false for synchronous mode.protected void verifyNotInBlock()
protected QuasarSync sync()
protected Sync sync(co.paralleluniverse.db.tree.Scheduler.Job job)
protected boolean isAsync()
protected void joinSync(co.paralleluniverse.db.tree.Scheduler.Job<R> job) throws SuspendExecution
SuspendExecutionprotected void joinSync(Sync sync) throws SuspendExecution
SuspendExecutionprotected Sync perhapsJoin(co.paralleluniverse.db.tree.Scheduler.Job<R> job) throws SuspendExecution
SuspendExecutionprotected Sync perhapsJoin(Sync sync) throws SuspendExecution
SuspendExecutionpublic void addTXNListener(TXNListener<T> listener)
addTXNListener in interface TXNContainer<T>public void removeTXNListener(TXNListener<T> listener)
removeTXNListener in interface TXNContainer<T>public String getName()
DBaseReturns the SpaceBase store’s name.
public Collection<Object> createCollection()
public int getQueueLength()
public void unregisterMBeans()
public void prettyPrint(PrintStream out)
public void joinAllPendingOperations()
throws InterruptedException,
SuspendExecution
DBaseIf this store has been configured as parallel and setCurrentThreadAsynchronous(true) has been called on this thread, this method awaits the completion of all, yet-uncompleted operations. Upon its return, all of the operations modifications to the store are visible by this thread.
If this store has not been configured as parallel, or not set as asynchronous, this method has no effect, and will never throw an exception.
joinAllPendingOperations in interface DBase<T>InterruptedExceptionSuspendExecution