T - the service type this configuration works withR - the type of the detached representationpublic interface ServiceConfiguration<T extends Service,R>
Service.| Modifier and Type | Method and Description | 
|---|---|
default ServiceConfiguration<T,?> | 
build(R representation)
Construct a new configuration from the given detached representation. 
 | 
default boolean | 
compatibleWith(ServiceConfiguration<?,?> other)
Returns true if this configuration can co-exist with  
other in the same cache configuration. | 
default R | 
derive()
Derive a detached representation from this configuration 
 | 
java.lang.Class<T> | 
getServiceType()
Indicates which service this configuration works with. 
 | 
java.lang.Class<T> getServiceType()
default R derive() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the configuration has no representationdefault ServiceConfiguration<T,?> build(R representation) throws java.lang.UnsupportedOperationException
representation - a detached representationjava.lang.UnsupportedOperationException - if the configuration has no representationdefault boolean compatibleWith(ServiceConfiguration<?,?> other)
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.
other - other service configurationtrue if the two configurations are compatible