Package com.djrapitops.plan
Interface DataService
- All Known Implementing Classes:
DataSvc
public interface DataService
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
<K, T> Optional<T>
default <K, T> void
push(K identifier, T value)
<K, T> void
<K, T> DataService
registerDatabasePullSource(Class<K> identifierType, Class<T> type, Function<K,Query<T>> source)
<T> DataService
registerDatabasePullSource(Class<T> type, Supplier<Query<T>> source)
<K, T> DataService
registerDatabaseSink(Class<K> identifierType, Class<T> type, BiFunction<K,T,Transaction> consumer)
<K, A, B> DataService
registerMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K,A,B> mapper)
<K, A, B> DataService
registerMapper(Class<K> identifierType, Class<A> from, Class<B> to, Function<A,B> mapper)
<K1, K2, A, B>
DataServiceregisterMapper(Class<K1> fromIdentifier, Class<A> from, Class<K2> toIdentifier, Class<B> to, TriConsumer<K1,A,BiConsumer<K2,B>> mapper)
<K, T> DataService
registerPullSource(Class<K> identifierType, Class<T> type, Function<K,T> source)
<T> DataService
registerPullSource(Class<T> type, Supplier<T> source)
<K, T> DataService
registerSink(Class<K> identifierType, Class<T> type, BiConsumer<K,T> consumer)
-
Method Details
-
push
default <K, T> void push(K identifier, T value) -
push
-
registerMapper
<K, A, B> DataService registerMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K,A,B> mapper) -
registerMapper
<K, A, B> DataService registerMapper(Class<K> identifierType, Class<A> from, Class<B> to, Function<A,B> mapper) -
registerMapper
<K1, K2, A, B> DataService registerMapper(Class<K1> fromIdentifier, Class<A> from, Class<K2> toIdentifier, Class<B> to, TriConsumer<K1,A,BiConsumer<K2,B>> mapper) -
registerSink
<K, T> DataService registerSink(Class<K> identifierType, Class<T> type, BiConsumer<K,T> consumer) -
registerDatabaseSink
<K, T> DataService registerDatabaseSink(Class<K> identifierType, Class<T> type, BiFunction<K,T,Transaction> consumer) -
pull
-
pull
-
registerPullSource
<K, T> DataService registerPullSource(Class<K> identifierType, Class<T> type, Function<K,T> source) -
registerDatabasePullSource
<K, T> DataService registerDatabasePullSource(Class<K> identifierType, Class<T> type, Function<K,Query<T>> source) -
registerPullSource
-
registerDatabasePullSource
-