Package org.infinispan.api
Interface Infinispan
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
AsyncContainer,MutinyContainer,SyncContainer
@Experimental("This is not ready yet for general consumption. Major changes are still expected.")
public interface Infinispan
extends AutoCloseable
Infinispan instance, embedded or client, depending on the access point.
- Since:
- 14.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasync()Returns an asynchronous version of the Infinispan APIvoidclose()Closes the instance, releasing all allocated resources (thread pools, open files, etc)static Infinispanstatic InfinispanCreates and starts the Infinispan manager objectstatic Infinispancreate(Configuration configuration) static Infinispancreate(Configuration configuration, Infinispan.Factory factory) mutiny()Returns a mutiny version of the Infinispan APIsync()Returns a synchronous version of the Infinispan API
-
Method Details
-
create
Creates and starts the Infinispan manager objectCalling create with the same URI multiple times should return the same object. Ref count the object.
- file:///.../infinispan.xml Embedded Infinispan configured via XML/JSON/Yaml file
- classpath:///.../infinispan.xml Embedded Infinispan configured via XML/JSON/Yaml classpath resource
- hotrod[s]://[username[:password]@]host:port[,host2:port]?property=value[invalid input: '&property'=value]
- Parameters:
uri- one of the supported Infinispan URIs:- Returns:
- an
-
create
-
create
-
create
-
sync
SyncContainer sync()Returns a synchronous version of the Infinispan API- Returns:
-
async
AsyncContainer async()Returns an asynchronous version of the Infinispan API- Returns:
-
mutiny
MutinyContainer mutiny()Returns a mutiny version of the Infinispan API- Returns:
-
close
void close()Closes the instance, releasing all allocated resources (thread pools, open files, etc)- Specified by:
closein interfaceAutoCloseable
-