Package com.guflimc.multicore
Interface MultiStorage
public interface MultiStorage
-
Method Summary
Modifier and TypeMethodDescription<T extends Serializable>
Optional<T>attribute(@NotNull AttributeKey<T> key) <T extends Serializable>
voidremoveAttribute(@NotNull AttributeKey<T> key) <T extends Serializable>
voidsetAttribute(@NotNull AttributeKey<T> key, T value) <T extends Serializable>
Subscriptionsubscribe(@NotNull AttributeKey<T> key, @NotNull Consumer<T> callback)
-
Method Details
-
attribute
-
setAttribute
-
removeAttribute
-
subscribe
<T extends Serializable> Subscription subscribe(@NotNull @NotNull AttributeKey<T> key, @NotNull @NotNull Consumer<T> callback)
-