Package io.opencensus.trace
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 class
Deprecated.NetworkEvent
is deprecated.static enum
Deprecated.Available types for aNetworkEvent
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkEvent.Builder
builder
(NetworkEvent.Type type, long messageId) Deprecated.Returns a newNetworkEvent.Builder
with default values.abstract long
Deprecated.Returns the compressed size in bytes of theNetworkEvent
.abstract Timestamp
Deprecated.Returns the kernel timestamp associated with theNetworkEvent
ornull
if not set.abstract long
Deprecated.Returns the message id argument that serves to uniquely identify each network message.long
Deprecated.abstract NetworkEvent.Type
getType()
Deprecated.Returns the type of theNetworkEvent
.abstract long
Deprecated.Returns the uncompressed size in bytes of theNetworkEvent
.
-
Constructor Details
-
NetworkEvent
NetworkEvent()Deprecated.
-
-
Method Details
-
builder
Deprecated.Returns a newNetworkEvent.Builder
with 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
Builder
with default values. - Throws:
NullPointerException
- iftype
isnull
.- Since:
- 0.5
-
getKernelTimestamp
Deprecated.Returns the kernel timestamp associated with theNetworkEvent
ornull
if not set.- Returns:
- the kernel timestamp associated with the
NetworkEvent
ornull
if not set. - Since:
- 0.5
-
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
.