Class BaseMessageEventUtils

    • Constructor Detail

      • BaseMessageEventUtils

        private BaseMessageEventUtils()
    • Method Detail

      • asMessageEvent

        public static MessageEvent asMessageEvent​(BaseMessageEvent event)
        Cast or convert a BaseMessageEvent to MessageEvent.

        Warning: if the input is a io.opencensus.trace.NetworkEvent and contains kernelTimestamp information, this information will be dropped.

        Parameters:
        event - the BaseMessageEvent that is being cast or converted.
        Returns:
        a MessageEvent representation of the input.
      • asNetworkEvent

        public static NetworkEvent asNetworkEvent​(BaseMessageEvent event)
        Cast or convert a BaseMessageEvent to NetworkEvent.
        Parameters:
        event - the BaseMessageEvent that is being cast or converted.
        Returns:
        a io.opencensus.trace.NetworkEvent representation of the input.