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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getType()
void
setEventProtocol
(String eventProtocol) void
setEventType
(String eventType) void
setInstanceIP
(String instanceIP) void
setStreamId
(String streamId) void
setSubscriberId
(String subscriberId) void
setTimestamp
(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
-