mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-11 12:00:59 +00:00
Rework states, fixed children, and storage logic [stage]
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package io.xpipe.core.store;
|
||||
|
||||
public interface FixedChildStore extends DataStore {
|
||||
|
||||
int getFixedId();
|
||||
}
|
||||
@@ -4,5 +4,5 @@ import java.util.Map;
|
||||
|
||||
public interface FixedHierarchyStore extends DataStore {
|
||||
|
||||
Map<String, DataStore> listChildren() throws Exception;
|
||||
Map<String, FixedChildStore> listChildren() throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package io.xpipe.core.util;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface FailableBiConsumer<T, U, E extends Throwable> {
|
||||
|
||||
void accept(T var1, U var2) throws E;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package io.xpipe.core.util;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface FailableConsumer<T, E extends Throwable> {
|
||||
|
||||
void accept(T var1) throws E;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package io.xpipe.core.util;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface FailableRunnable<E extends Throwable> {
|
||||
|
||||
void run() throws E;
|
||||
}
|
||||
Reference in New Issue
Block a user