Package org.kurento.client
Class ConnectionStateChangedEvent
- java.lang.Object
-
- org.kurento.client.RaiseBaseEvent
-
- org.kurento.client.MediaEvent
-
- org.kurento.client.ConnectionStateChangedEvent
-
- All Implemented Interfaces:
Event
public class ConnectionStateChangedEvent extends MediaEvent
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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionState
getNewState()
Getter for the newState propertyConnectionState
getOldState()
Getter for the oldState propertyvoid
setNewState(ConnectionState newState)
Setter for the newState propertyvoid
setOldState(ConnectionState oldState)
Setter for the oldState property-
Methods inherited from class org.kurento.client.MediaEvent
getType, setType
-
Methods inherited from class org.kurento.client.RaiseBaseEvent
getSource, getTags, getTimestampMillis, setSource, setTags, setTimestampMillis
-
-
-
-
Constructor Detail
-
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 Detail
-
getOldState
public ConnectionState getOldState()
Getter for the oldState property- Returns:
- The previous state *
-
setOldState
public void setOldState(ConnectionState oldState)
Setter for the oldState property- Parameters:
oldState
- The previous state
-
getNewState
public ConnectionState getNewState()
Getter for the newState property- Returns:
- The new state *
-
setNewState
public void setNewState(ConnectionState newState)
Setter for the newState property- Parameters:
newState
- The new state
-
-