Package io.opencensus.trace.internal
Class BaseMessageEventUtils
java.lang.Object
io.opencensus.trace.internal.BaseMessageEventUtils
Helper class to convert/cast between for
MessageEvent
and NetworkEvent
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageEvent
asMessageEvent
(BaseMessageEvent event) Cast or convert aBaseMessageEvent
toMessageEvent
.static NetworkEvent
asNetworkEvent
(BaseMessageEvent event) Cast or convert aBaseMessageEvent
toNetworkEvent
.
-
Constructor Details
-
BaseMessageEventUtils
private BaseMessageEventUtils()
-
-
Method Details
-
asMessageEvent
Cast or convert aBaseMessageEvent
toMessageEvent
.Warning: if the input is a
io.opencensus.trace.NetworkEvent
and containskernelTimestamp
information, this information will be dropped.- Parameters:
event
- theBaseMessageEvent
that is being cast or converted.- Returns:
- a
MessageEvent
representation of the input.
-
asNetworkEvent
Cast or convert aBaseMessageEvent
toNetworkEvent
.- Parameters:
event
- theBaseMessageEvent
that is being cast or converted.- Returns:
- a
io.opencensus.trace.NetworkEvent
representation of the input.
-