Package org.openspaces.core.space.status
Class SpaceStatusChangedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.openspaces.core.space.status.SpaceStatusChangedEvent
- All Implemented Interfaces:
Serializable
public class SpaceStatusChangedEvent
extends org.springframework.context.ApplicationEvent
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSpaceStatusChangedEvent(IJSpace space, SuspendType suspendType, SpaceMode spaceMode) Creates a new Space status changed event that occurred when a space change hisSuspendTypeorSpaceMode -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Returns true if the space instance is primary and not suspended, false otherwise.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SpaceStatusChangedEvent
Creates a new Space status changed event that occurred when a space change hisSuspendTypeorSpaceMode- Parameters:
space- - The space that changed its statussuspendType- - The current suspend type of the spacespaceMode- - The current space mode
-
-
Method Details
-
getSuspendType
-
getSpaceMode
-
isActive
public boolean isActive()Returns true if the space instance is primary and not suspended, false otherwise.- Since:
- 14.5
-