Package discord4j.store.jdk
Class JdkStoreService
- java.lang.Object
-
- discord4j.store.jdk.JdkStoreService
-
- All Implemented Interfaces:
StoreService
@WireService(discord4j.store.api.service.StoreService.class) public class JdkStoreService extends Object implements StoreService
Factory that createsJdkStoreinstances.
-
-
Constructor Summary
Constructors Constructor Description JdkStoreService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Void>dispose()booleanhasGenericStores()booleanhasLongObjStores()voidinit(StoreContext context)<K extends Comparable<K>,V>
Store<K,V>provideGenericStore(Class<K> keyClass, Class<V> valueClass)<V> LongObjStore<V>provideLongObjStore(Class<V> valueClass)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface discord4j.store.api.service.StoreService
order
-
-
-
-
Method Detail
-
hasGenericStores
public boolean hasGenericStores()
- Specified by:
hasGenericStoresin interfaceStoreService
-
provideGenericStore
public <K extends Comparable<K>,V> Store<K,V> provideGenericStore(Class<K> keyClass, Class<V> valueClass)
- Specified by:
provideGenericStorein interfaceStoreService
-
hasLongObjStores
public boolean hasLongObjStores()
- Specified by:
hasLongObjStoresin interfaceStoreService
-
provideLongObjStore
public <V> LongObjStore<V> provideLongObjStore(Class<V> valueClass)
- Specified by:
provideLongObjStorein interfaceStoreService
-
init
public void init(StoreContext context)
- Specified by:
initin interfaceStoreService
-
dispose
public Mono<Void> dispose()
- Specified by:
disposein interfaceStoreService
-
-