Este conteúdo não está disponível no idioma selecionado.
2.4.2. Flag Usage with the AdvancedCache Interface
Flags, when applied to certain cache methods in JBoss Data Grid, alter the behavior of the target method. Use
AdvancedCache.withFlags() to apply any number of flags to a cache invocation, for example:
advancedCache.withFlags(Flag.CACHE_MODE_LOCAL, Flag.SKIP_LOCKING)
.withFlags(Flag.FORCE_SYNCHRONOUS)
.put("hello", "world");
advancedCache.withFlags(Flag.CACHE_MODE_LOCAL, Flag.SKIP_LOCKING)
.withFlags(Flag.FORCE_SYNCHRONOUS)
.put("hello", "world");