Skip to content
Snippets Groups Projects
Commit 63525b42 authored by Richard Alam's avatar Richard Alam
Browse files

Add timestamp on message

 - add a new timestamp field on the message envelope so we can collect
   statistics on message processing times.
parent cbecf320
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,12 @@ trait StandardSysMsg extends BbbCoreMsg {
def header: BbbClientMsgHeader
}
case class RoutingEnvelope(msgType: String, meetingId: String, userId: String)
case class BbbMsgToClientEnvelope(name: String, routing: RoutingEnvelope)
case class BbbCoreEnvelope(name: String, routing: collection.immutable.Map[String, String])
case class BbbCoreEnvelope(name: String, routing: collection.immutable.Map[String, String], timestamp: Long)
object BbbCoreEnvelope {
def apply(name: String, routing: collection.immutable.Map[String, String]): BbbCoreEnvelope = {
BbbCoreEnvelope(name, routing, System.currentTimeMillis())
}
}
case class BbbCommonEnvCoreMsg(envelope: BbbCoreEnvelope, core: BbbCoreMsg) extends BbbCommonMsg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment