public interface DBase<T> extends TXNContainer<T>
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the SpaceBase store’s name.
|
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. |
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() |
addTXNListener, removeTXNListener
String getName()
Returns the SpaceBase store’s name.
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. methods of this SpaceBase return immediately, possibly before completion. If this store has not been configured as parallel, calling this method has no effect.
value
- true
for asynchronous mode, false
for synchronous mode.boolean isCurrentStrandAsynchronous()
Tests whether this strand was put in asynchronous mode
.
true
for asynchronous mode, false
for synchronous mode.void joinAllPendingOperations() throws InterruptedException, SuspendExecution
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. 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.
InterruptedException
SuspendExecution
void shutdown()