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
  • Method Details

    • create

      static Infinispan create(URI uri)
      Creates and starts the Infinispan manager object

      Calling 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[&property=value]
      Parameters:
      uri - one of the supported Infinispan URIs:
      Returns:
      an
    • create

      static Infinispan create(String uri)
    • create

      static Infinispan create(Configuration configuration)
    • create

      static Infinispan create(Configuration configuration, Infinispan.Factory factory)
    • sync

      Returns a synchronous version of the Infinispan API
      Returns:
    • 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:
      close in interface AutoCloseable