Interface ServiceConfiguration<T extends Service,​R>

    • Method Detail

      • getServiceType

        Class<T> getServiceType()
        Indicates which service this configuration works with.
        Returns:
        the service type
      • compatibleWith

        default boolean compatibleWith​(ServiceConfiguration<?,​?> other)
        Returns true if this configuration can co-exist with other in the same cache configuration.

        The default implementation of compatibleWith (as used by many of the implementations) considers any instance of the same type (or a sub-type) to be incompatible with this instance.

        Parameters:
        other - other service configuration
        Returns:
        true if the two configurations are compatible