com.gemstone.gemfire.cache
Class DataPolicy

Enumerated type for region data policy.
The data policy specifies how this local cache will handle the data for a region.

EMPTY causes data to never be stored in local memory. The region will always appear empty. It can be used to for zero footprint producers that only want to distribute their data to others and for zero footprint consumers that only want to see events.

NORMAL causes data that this region is interested in to be stored in local memory. It allows the contents in this cache to differ from other caches.

PERSISTENT_PARTITION in addition to PARTITION also causes data to be stored to disk. The region initialization uses the data stored on disk.

REPLICATE causes data that this region is interested in to be stored in local memory. A distributed region will be initialized with the data from other caches. On distributed region operations that would cause the contents to differ with other caches are not allowed. This policy is allowed on local scope region but it behaves the same as NORMAL.

PERSISTENT_REPLICATE in addition to REPLICATE also causes data to be stored to disk. The region initialization uses the data stored on disk. Note that the persistence applies to both local scope and distributed scope.

EMPTY

Data is never stored in local memory.
The region will always be empty locally.
It can be used to for zero footprint producers that only want to distribute
their data to others
and for zero footprint consumers that only want to see events.