Package com.djrapitops.plan
Interface DataService
- All Known Implementing Classes:
DataSvc
public interface DataService
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<K, A, B> Optional<B>
<K, T> Optional<T>
<T> Optional<T>
pullWithoutId(Class<T> type)
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)
default <K, A, B> DataService
registerDataServiceMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<DataService,A,B> mapper)
<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)
<K, Y, A, B> DataService
registerMapper(Class<K> fromIdentifier, Class<A> from, Class<Y> toIdentifier, Class<B> to, TriConsumer<K,A,BiConsumer<Y,B>> mapper)
default <K, A, B> DataService
registerOptionalMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K,A,Optional<B>> mapper)
default <K, T> DataService
registerOptionalPullSource(Class<K> identifierType, Class<T> type, Function<K,Optional<T>> source)
<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
-
registerOptionalMapper
default <K, A, B> DataService registerOptionalMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K,A,Optional<B>> mapper) -
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) -
registerDataServiceMapper
default <K, A, B> DataService registerDataServiceMapper(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<DataService,A,B> mapper) -
registerMapper
<K, Y, A, B> DataService registerMapper(Class<K> fromIdentifier, Class<A> from, Class<Y> toIdentifier, Class<B> to, TriConsumer<K,A,BiConsumer<Y,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
-
pullWithoutId
-
registerPullSource
<K, T> DataService registerPullSource(Class<K> identifierType, Class<T> type, Function<K,T> source) -
registerOptionalPullSource
default <K, T> DataService registerOptionalPullSource(Class<K> identifierType, Class<T> type, Function<K,Optional<T>> source) -
registerDatabasePullSource
<K, T> DataService registerDatabasePullSource(Class<K> identifierType, Class<T> type, Function<K,Query<T>> source) -
registerPullSource
-
registerDatabasePullSource
-
map
-