Package io.antmedia.datastore.db.types
Class ConnectionEvent
java.lang.Object
io.antmedia.datastore.db.types.ConnectionEvent
@Entity
@Index(fields=@Field("streamId")) @Index(fields=@Field("subscriberId"))
public class ConnectionEvent
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetType()voidsetEventProtocol(String eventProtocol) voidsetEventType(String eventType) voidsetInstanceIP(String instanceIP) voidsetStreamId(String streamId) voidsetSubscriberId(String subscriberId) voidsetTimestamp(long timestamp) void
-
Field Details
-
CONNECTED_EVENT
- See Also:
-
DISCONNECTED_EVENT
- See Also:
-
timestamp
private long timestampTimestamp of this event. Unix timestamp in milliseconds -
eventType
type of the event Connection/Disconnection -
instanceIP
-
type
-
eventProtocol
-
streamId
-
subscriberId
-
dbId
@Id private org.bson.types.ObjectId dbId
-
-
Constructor Details
-
ConnectionEvent
public ConnectionEvent()
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long timestamp) -
getEventType
-
setEventType
-
getInstanceIP
-
setInstanceIP
-
getType
-
setType
-
getEventProtocol
-
setEventProtocol
-
getSubscriberId
- Returns:
- the subscriberId
-
setSubscriberId
- Parameters:
subscriberId- the subscriberId to set
-
getStreamId
- Returns:
- the streamId
-
setStreamId
- Parameters:
streamId- the streamId to set
-