public interface PersistenceController<T extends Storable<IMMUTABLE>,IMMUTABLE> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
execute(VoidCommand<T> cmd) |
void |
execute(VoidContextCommand<T> cmd) |
<R> R |
executeAndQuery(Command<T,R> cmd)
Perform command on system.
|
<R> R |
executeAndQuery(ContextCommand<T,R> cmd)
Perform command on system.
|
boolean |
isOpen() |
<RESULT> RESULT |
query(Query<IMMUTABLE,RESULT> query)
Query system (immutable view of it).
|
void |
shut() |
void close()
close in interface AutoCloseablevoid shut()
<RESULT> RESULT query(Query<IMMUTABLE,RESULT> query)
RESULT - result of queryquery - lambda (or query implementation) with operations<R> R executeAndQuery(ContextCommand<T,R> cmd)
cmd - <R> R executeAndQuery(Command<T,R> cmd)
cmd - void execute(VoidCommand<T> cmd)
void execute(VoidContextCommand<T> cmd)
boolean isOpen()
Copyright © 2015. All rights reserved.