Package io.opencensus.trace
Class NetworkEvent
- java.lang.Object
-
- io.opencensus.trace.BaseMessageEvent
-
- io.opencensus.trace.NetworkEvent
-
- Direct Known Subclasses:
AutoValue_NetworkEvent
@Immutable @Deprecated public abstract class NetworkEvent extends BaseMessageEvent
Deprecated.UseMessageEvent
.A class that represents a network event. It requires atype
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 Classes Modifier and Type Class Description static class
NetworkEvent.Builder
Deprecated.NetworkEvent
is deprecated.static class
NetworkEvent.Type
Deprecated.Available types for aNetworkEvent
.
-
Constructor Summary
Constructors Constructor Description NetworkEvent()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NetworkEvent.Builder
builder(NetworkEvent.Type type, long messageId)
Deprecated.Returns a newNetworkEvent.Builder
with default values.abstract long
getCompressedMessageSize()
Deprecated.Returns the compressed size in bytes of theNetworkEvent
.abstract Timestamp
getKernelTimestamp()
Deprecated.Returns the kernel timestamp associated with theNetworkEvent
ornull
if not set.abstract long
getMessageId()
Deprecated.Returns the message id argument that serves to uniquely identify each network message.long
getMessageSize()
Deprecated.abstract NetworkEvent.Type
getType()
Deprecated.Returns the type of theNetworkEvent
.abstract long
getUncompressedMessageSize()
Deprecated.Returns the uncompressed size in bytes of theNetworkEvent
.
-
-
-
Method Detail
-
builder
public static NetworkEvent.Builder builder(NetworkEvent.Type type, long messageId)
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:
java.lang.NullPointerException
- iftype
isnull
.- Since:
- 0.5
-
getKernelTimestamp
@Nullable public abstract Timestamp 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
public abstract NetworkEvent.Type 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 public long getMessageSize()
Deprecated.Returns the uncompressed size in bytes of theNetworkEvent
.- Returns:
- the uncompressed size in bytes of the
NetworkEvent
. - Since:
- 0.5
-
-