Package org.infinispan.api
Interface Infinispan
-
@Experimental("This is not ready yet for general consumption. Major changes are still expected.") public interface Infinispan
Infinispan instance, embedded or client, depending on the access point.- Since:
- 10.0
- Author:
- Katia Aresti, [email protected]
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
CompletionStage<KeyValueStore<K,V>>getKeyValueStore(String name, KeyValueStoreConfig config)
Gets theKeyValueStore
by name.static Infinispan
newClient(ClientConfig config)
static Infinispan
newEmbedded(EmbeddedConfig config)
CompletionStage<Void>
stop()
Stops Infinispan
-
-
-
Method Detail
-
newClient
static Infinispan newClient(ClientConfig config)
-
newEmbedded
static Infinispan newEmbedded(EmbeddedConfig config)
-
getKeyValueStore
<K,V> CompletionStage<KeyValueStore<K,V>> getKeyValueStore(String name, KeyValueStoreConfig config)
Gets theKeyValueStore
by name.If the store does not exist, creates a
KeyValueStore
with the given config- Parameters:
name
- , name of the store- Returns:
KeyValueStore
-
stop
CompletionStage<Void> stop()
Stops Infinispan- Returns:
CompletionStage
-
-