public class GroupsConfigurationBuilder extends AbstractClusteringConfigurationChildBuilder implements Builder<GroupsConfiguration>
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private java.util.List<org.infinispan.distribution.group.Grouper<?>> |
groupers |
Modifier | Constructor and Description |
---|---|
protected |
GroupsConfigurationBuilder(ClusteringConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
GroupsConfigurationBuilder |
addGrouper(org.infinispan.distribution.group.Grouper<?> grouper)
Add a grouper
|
GroupsConfigurationBuilder |
clearGroupers()
Clear the groupers
|
GroupsConfiguration |
create()
Create the configuration bean
|
GroupsConfigurationBuilder |
disabled()
Disable grouping support so that
Group annotations are not used and any configured
groupers will not be be invoked |
GroupsConfigurationBuilder |
enabled()
Enable grouping support so that
Group annotations are honored and any configured
groupers will be invoked |
GroupsConfigurationBuilder |
enabled(boolean enabled)
Enable grouping support so that
Group annotations are honored and any configured
groupers will be invoked |
GroupsConfigurationBuilder |
read(GroupsConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
java.lang.String |
toString() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
GroupsConfigurationBuilder |
withGroupers(java.util.List<org.infinispan.distribution.group.Grouper<?>> groupers)
Set the groupers to use
|
async, getClusteringBuilder, hash, l1, stateTransfer, sync
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, getBuilder, indexing, invocationBatching, jmxStatistics, locking, persistence, security, sites, storeAsBinary, transaction, unsafe, versioning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, security, sites, storeAsBinary, transaction, unsafe, versioning
private boolean enabled
private java.util.List<org.infinispan.distribution.group.Grouper<?>> groupers
protected GroupsConfigurationBuilder(ClusteringConfigurationBuilder builder)
public GroupsConfigurationBuilder enabled()
Group
annotations are honored and any configured
groupers will be invokedpublic GroupsConfigurationBuilder enabled(boolean enabled)
Group
annotations are honored and any configured
groupers will be invokedpublic GroupsConfigurationBuilder disabled()
Group
annotations are not used and any configured
groupers will not be be invokedpublic GroupsConfigurationBuilder withGroupers(java.util.List<org.infinispan.distribution.group.Grouper<?>> groupers)
public GroupsConfigurationBuilder clearGroupers()
public GroupsConfigurationBuilder addGrouper(org.infinispan.distribution.group.Grouper<?> grouper)
public void validate()
Builder
validate
in interface Builder<GroupsConfiguration>
public GroupsConfiguration create()
Builder
create
in interface Builder<GroupsConfiguration>
public GroupsConfigurationBuilder read(GroupsConfiguration template)
Builder
read
in interface Builder<GroupsConfiguration>
template
- the configuration from which to "clone" this config if needed.public java.lang.String toString()
toString
in class java.lang.Object