Class ConnectionStateChangedEvent
java.lang.Object
org.kurento.client.RaiseBaseEvent
org.kurento.client.MediaEvent
org.kurento.client.ConnectionStateChangedEvent
- All Implemented Interfaces:
Event
This event is raised when the connection between two peers changes. It contains the old and the new state. Possible values are
- CONNECTED
- DISCONNECTED
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionStateChangedEvent(MediaObject source, String timestampMillis, List<Tag> tags, String type, ConnectionState oldState, ConnectionState newState) This event is raised when the connection between two peers changes. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the newState propertyGetter for the oldState propertyvoidsetNewState(ConnectionState newState) Setter for the newState propertyvoidsetOldState(ConnectionState oldState) Setter for the oldState propertyMethods inherited from class MediaEvent
getType, setTypeMethods inherited from class RaiseBaseEvent
getSource, getTags, getTimestampMillis, setSource, setTags, setTimestampMillis
-
Constructor Details
-
ConnectionStateChangedEvent
public ConnectionStateChangedEvent(MediaObject source, String timestampMillis, List<Tag> tags, String type, ConnectionState oldState, ConnectionState newState) This event is raised when the connection between two peers changes. It contains the old and the new state. Possible values are- CONNECTED
- DISCONNECTED
- Parameters:
source- Object that raised the eventtimestampMillis- The timestamp associated with this event: Milliseconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).tags-type- Type of event that was raisedoldState- The previous statenewState- The new state
-
-
Method Details
-
getOldState
-
setOldState
Setter for the oldState property- Parameters:
oldState- The previous state
-
getNewState
-
setNewState
Setter for the newState property- Parameters:
newState- The new state
-