Package org.flux.store.main
Class DuxSlice<T extends State>
- java.lang.Object
-
- org.flux.store.main.DuxSlice<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreBackup<T>backup()protected static <T extends State>
DuxSlice<T>createSlice(DuxSliceBuilder<T> builder)protected static <T extends State>
DuxSlice<T>createSlice(T initialState, Map<String,Reducer<T>> reducers, List<Consumer<T>> subscribers, Middleware<T> middleware, Boolean asyncFlag, Boolean autoBackup, String backupPath)ConsumergetAction(String type)TgetState()voidgoBack()voidgoForward()voidrestore(StoreBackup<T> backup)
-
-
-
Method Detail
-
createSlice
protected static <T extends State> DuxSlice<T> createSlice(T initialState, Map<String,Reducer<T>> reducers, List<Consumer<T>> subscribers, Middleware<T> middleware, Boolean asyncFlag, Boolean autoBackup, String backupPath)
-
createSlice
protected static <T extends State> DuxSlice<T> createSlice(DuxSliceBuilder<T> builder)
-
getAction
public Consumer getAction(String type) throws InvalidActionException
- Specified by:
getActionin interfaceSlice<T extends State>- Throws:
InvalidActionException
-
restore
public void restore(StoreBackup<T> backup)
-
-