Class NetworkEvent
java.lang.Object
io.opencensus.trace.BaseMessageEvent
io.opencensus.trace.NetworkEvent
- Direct Known Subclasses:
AutoValue_NetworkEvent
Deprecated.
A class that represents a network event. It requires a
type and a message id that
serves to uniquely identify each network message. It can optionally can have information about
the kernel time and message size.- Since:
- 0.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.NetworkEventis deprecated.static enumDeprecated.Available types for aNetworkEvent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkEvent.Builderbuilder(NetworkEvent.Type type, long messageId) Deprecated.Returns a newNetworkEvent.Builderwith default values.abstract longDeprecated.Returns the compressed size in bytes of theNetworkEvent.abstract TimestampDeprecated.Returns the kernel timestamp associated with theNetworkEventornullif not set.abstract longDeprecated.Returns the message id argument that serves to uniquely identify each network message.longDeprecated.abstract NetworkEvent.TypegetType()Deprecated.Returns the type of theNetworkEvent.abstract longDeprecated.Returns the uncompressed size in bytes of theNetworkEvent.
-
Constructor Details
-
NetworkEvent
NetworkEvent()Deprecated.
-
-
Method Details
-
builder
Deprecated.Returns a newNetworkEvent.Builderwith default values.- Parameters:
type- designates whether this is a network send or receive message.messageId- serves to uniquely identify each network message.- Returns:
- a new
Builderwith default values. - Throws:
NullPointerException- iftypeisnull.- Since:
- 0.5
-
getKernelTimestamp
-
getType
Deprecated.Returns the type of theNetworkEvent.- Returns:
- the type of the
NetworkEvent. - Since:
- 0.5
-
getMessageId
public abstract long getMessageId()Deprecated.Returns the message id argument that serves to uniquely identify each network message.- Returns:
- the message id of the
NetworkEvent. - Since:
- 0.5
-
getUncompressedMessageSize
public abstract long getUncompressedMessageSize()Deprecated.Returns the uncompressed size in bytes of theNetworkEvent.- Returns:
- the uncompressed size in bytes of the
NetworkEvent. - Since:
- 0.6
-
getCompressedMessageSize
public abstract long getCompressedMessageSize()Deprecated.Returns the compressed size in bytes of theNetworkEvent.- Returns:
- the compressed size in bytes of the
NetworkEvent. - Since:
- 0.6
-
getMessageSize
Deprecated.Returns the uncompressed size in bytes of theNetworkEvent.- Returns:
- the uncompressed size in bytes of the
NetworkEvent. - Since:
- 0.5
-
MessageEvent.