Package com.vaadin.flow.component
Class HeartbeatEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.HeartbeatEvent
-
- All Implemented Interfaces:
Serializable
public class HeartbeatEvent extends EventObject
Event created for an application heartbeat from the client.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description HeartbeatEvent(UI ui, long heartbeatTime)
Constructs a heartbeat Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getHeartbeatTime()
UI
getSource()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
HeartbeatEvent
public HeartbeatEvent(UI ui, long heartbeatTime)
Constructs a heartbeat Event.- Parameters:
ui
- UI for which the Event occurredheartbeatTime
- value for the heartbeat
-
-
Method Detail
-
getHeartbeatTime
public long getHeartbeatTime()
-
getSource
public UI getSource()
- Overrides:
getSource
in classEventObject
-
-