Este conteúdo não está disponível no idioma selecionado.
3.3. Configure the Grouping API
Use the following steps to configure the Grouping API:
- Enable groups using either the declarative or programmatic method.
- Specify either an intrinsic or extrinsic group. For more information about these group types, see Section 3.1, “Grouping API Operations”
- Register all specified groupers.
3.3.1. Enable Groups Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
The first step to set up the Grouping API is to enable groups. In Red Hat JBoss Data Grid, groups are enabled declaratively or programmatically as follows:
Declaratively Enable Groups
Use the following configuration to enable groups using XML:
<clustering>
<hash>
<groups enabled="true" />
</hash>
</clustering>
Programmatically Enable Groups
Use the following to enable groups programmatically:
Configuration c = new ConfigurationBuilder().clustering().hash().groups().enabled().build();