Class ImportSnapshotApplicationEvent<K,V>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.gemfire.snapshot.event.SnapshotApplicationEvent<K,V>
org.springframework.data.gemfire.snapshot.event.ImportSnapshotApplicationEvent<K,V>
- All Implemented Interfaces:
Serializable
The ImportSnapshotApplicationEvent class is a Spring ApplicationEvent signaling a GemFire Cache or Region 'export'
snapshot event.
- Since:
- 1.7.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionImportSnapshotApplicationEvent
(Object source, String regionPath, SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... snapshotMetadata) Constructs an instance of ImportSnapshotApplicationEvent initialized with an event source, a pathname of the Region in which data is imported along with meta-data describing the details of the snapshot source.ImportSnapshotApplicationEvent
(Object source, SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... snapshotMetadata) Constructs an instance of ImportSnapshotApplicationEvent initialized with an event source and optional meta-data describing the data snapshots to be imported. -
Method Summary
Methods inherited from class org.springframework.data.gemfire.snapshot.event.SnapshotApplicationEvent
getRegionPath, getSnapshotMetadata, isCacheSnapshotEvent, isRegionSnapshotEvent, matches, matches
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ImportSnapshotApplicationEvent
public ImportSnapshotApplicationEvent(Object source, SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... snapshotMetadata) Constructs an instance of ImportSnapshotApplicationEvent initialized with an event source and optional meta-data describing the data snapshots to be imported.- Parameters:
source
- the source of the ApplicationEvent.snapshotMetadata
- an array of SnapshotMetadata containing details for each import.- See Also:
-
ImportSnapshotApplicationEvent
public ImportSnapshotApplicationEvent(Object source, String regionPath, SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... snapshotMetadata) Constructs an instance of ImportSnapshotApplicationEvent initialized with an event source, a pathname of the Region in which data is imported along with meta-data describing the details of the snapshot source.- Parameters:
source
- the source of the ApplicationEvent.regionPath
- absolute pathname of the Region.snapshotMetadata
- an array of SnapshotMetadata containing details for each import/export.- See Also:
-