Class BaseMessageEvent

java.lang.Object
io.opencensus.trace.BaseMessageEvent
Direct Known Subclasses:
MessageEvent, NetworkEvent

@Deprecated public abstract class BaseMessageEvent extends Object
Deprecated.
This class is for internal use only.
Superclass for MessageEvent and NetworkEvent to resolve API backward compatibility issue.

SpanData.create can't be overloaded with parameter types that differ only in the type of the TimedEvent, because the signatures are the same after generic type erasure. BaseMessageEvent allows the same method to accept both TimedEvents<NetworkEvent> and TimedEvents<MessageEvent>.

This class should only be extended by NetworkEvent and MessageEvent.

Since:
0.12
  • Constructor Details

    • BaseMessageEvent

      BaseMessageEvent()
      Deprecated.