K
- the cache entry key typeV
- the cache entry value typepublic interface SnapshotOptions<K,V> extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
SnapshotOptions.SnapshotFormat
Defines the available snapshot file formats.
|
Modifier and Type | Method and Description |
---|---|
SnapshotFilter<K,V> |
getFilter()
Returns the filter to be applied to snapshot entries.
|
SnapshotOptions<K,V> |
invokeCallbacks(boolean invokeCallbacks)
Sets whether to invoke callbacks when loading a snapshot.
|
boolean |
isParallelMode()
Returns true if the snapshot operation will proceed in parallel.
|
SnapshotOptions<K,V> |
setFilter(SnapshotFilter<K,V> filter)
Sets a filter to apply to snapshot entries.
|
SnapshotOptions<K,V> |
setParallelMode(boolean parallel)
Enables parallel mode for snapshot export, which will cause each member of a partitioned region
to save its local data set (ignoring redundant copies) to a separate snapshot file.
|
boolean |
shouldInvokeCallbacks()
Returns whether loading a snapshot causes callbacks to be invoked
|
SnapshotOptions<K,V> setFilter(SnapshotFilter<K,V> filter)
filter
- the filter to apply, or null to remove the filterSnapshotFilter<K,V> getFilter()
SnapshotOptions<K,V> invokeCallbacks(boolean invokeCallbacks)
invokeCallbacks
- whether to invoke callbacks when loading a snapshotboolean shouldInvokeCallbacks()
boolean isParallelMode()
SnapshotOptions<K,V> setParallelMode(boolean parallel)
Parallelizing snapshot operations may yield significant performance improvements for large data sets. This is particularly true when each member is writing to separate physical disks.
This flag is ignored for replicated regions.
parallel
- true if the snapshot operations will be performed in parallelSnapshotFileMapper