public class SimpleController<T extends Serializable> extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <T extends Serializable> |
create(String name,
T initial) |
void |
execute(VoidCommand<T> cmd) |
void |
execute(VoidContextCommand<T> cmd) |
<R> R |
executeAndQuery(Command<T,R> cmd) |
<R> R |
executeAndQuery(ContextCommand<T,R> cmd) |
static boolean |
exists(String name) |
boolean |
isOpen() |
static <T extends Serializable> |
load(String name) |
static <T extends Serializable> |
loadOptional(String name,
java.util.function.Supplier<T> constructor) |
<RESULT> RESULT |
query(Query<T,RESULT> query) |
T |
readOnly() |
void |
shut() |
public static boolean exists(String name)
public static <T extends Serializable> SimpleController<T> load(String name)
public static <T extends Serializable> SimpleController<T> loadOptional(String name, java.util.function.Supplier<T> constructor)
public static <T extends Serializable> SimpleController<T> create(String name, T initial)
public T readOnly()
public void close()
close in interface AutoCloseablepublic void shut()
public boolean isOpen()
public <R> R executeAndQuery(ContextCommand<T,R> cmd)
public void execute(VoidContextCommand<T> cmd)
public void execute(VoidCommand<T> cmd)
Copyright © 2015. All rights reserved.