Interface InfinispanConnectionProviderFactory

All Superinterfaces:
ProviderFactory<InfinispanConnectionProvider>
All Known Implementing Classes:
DefaultInfinispanConnectionProviderFactory

public interface InfinispanConnectionProviderFactory extends ProviderFactory<InfinispanConnectionProvider>
Author:
Stian Thorgersen
  • Method Details

    • isClusterHealthy

      default boolean isClusterHealthy()
      Detects network split in the cluster.

      If a possible network split is detected and this node does not belong to the winning partition, this method will return false, and should not continue handling requests, to keep data safety.

      Returns:
      true if the cluster is healthy and this node can continue processing requests. When false, this node must reject any work.
    • isClusterHealthSupported

      default boolean isClusterHealthSupported()
      Checks if the cluster health check is supported.

      Not all JGroups configurations support discovering network splits and this method signals if the current in use configuration can detect those.

      Returns:
      true if the cluster health check is supported.