Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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");