Class RemoteCacheManager

    • Constructor Detail

      • RemoteCacheManager

        public RemoteCacheManager​(Configuration configuration)
        Create a new RemoteCacheManager using the supplied Configuration. The RemoteCacheManager will be started automatically
        Parameters:
        configuration - the configuration to use for this RemoteCacheManager
        Since:
        5.3
      • RemoteCacheManager

        public RemoteCacheManager​(String uri)
        Create a new RemoteCacheManager using the supplied URI. The RemoteCacheManager will be started automatically
        Parameters:
        uri - the URI to use for this RemoteCacheManager
        Since:
        11.0
      • RemoteCacheManager

        public RemoteCacheManager​(URI uri)
        Create a new RemoteCacheManager using the supplied URI. The RemoteCacheManager will be started automatically
        Parameters:
        uri - the URI to use for this RemoteCacheManager
        Since:
        11.0
      • RemoteCacheManager

        public RemoteCacheManager​(Configuration configuration,
                                  boolean start)
        Create a new RemoteCacheManager using the supplied Configuration. The RemoteCacheManager will be started automatically only if the start parameter is true
        Parameters:
        configuration - the configuration to use for this RemoteCacheManager
        start - whether or not to start the manager on return from the constructor.
        Since:
        5.3
      • RemoteCacheManager

        public RemoteCacheManager​(boolean start)

        Similar to RemoteCacheManager(Configuration, boolean), but it will try to lookup the config properties in the classpath, in a file named hotrod-client.properties. If no properties can be found in the classpath, defaults will be used, attempting to connect to 127.0.0.1:11222

        Refer to ConfigurationBuilder for a detailed list of available properties.

        Parameters:
        start - whether or not to start the RemoteCacheManager
        Throws:
        HotRodClientException - if such a file cannot be found in the classpath