Class NetworkEvent.Builder

java.lang.Object
io.opencensus.trace.NetworkEvent.Builder
Direct Known Subclasses:
AutoValue_NetworkEvent.Builder
Enclosing class:
NetworkEvent

@Deprecated public abstract static class NetworkEvent.Builder extends Object
Deprecated.
NetworkEvent is deprecated. Please use MessageEvent and its builder MessageEvent.Builder.
Builder class for NetworkEvent.
Since:
0.5
  • Constructor Details

    • Builder

      Builder()
      Deprecated.
  • Method Details

    • setType

      abstract NetworkEvent.Builder setType(NetworkEvent.Type type)
      Deprecated.
    • setMessageId

      abstract NetworkEvent.Builder setMessageId(long messageId)
      Deprecated.
    • setKernelTimestamp

      public abstract NetworkEvent.Builder setKernelTimestamp(@Nullable Timestamp kernelTimestamp)
      Deprecated.
      Sets the kernel timestamp.
      Parameters:
      kernelTimestamp - The kernel timestamp of the event.
      Returns:
      this.
      Since:
      0.5
    • setMessageSize

      @Deprecated public NetworkEvent.Builder setMessageSize(long messageSize)
      Sets the uncompressed message size.
      Parameters:
      messageSize - represents the uncompressed size in bytes of this message.
      Returns:
      this.
      Since:
      0.5
    • setUncompressedMessageSize

      public abstract NetworkEvent.Builder setUncompressedMessageSize(long uncompressedMessageSize)
      Deprecated.
      Sets the uncompressed message size.
      Parameters:
      uncompressedMessageSize - represents the uncompressed size in bytes of this message.
      Returns:
      this.
      Since:
      0.6
    • setCompressedMessageSize

      public abstract NetworkEvent.Builder setCompressedMessageSize(long compressedMessageSize)
      Deprecated.
      Sets the compressed message size.
      Parameters:
      compressedMessageSize - represents the compressed size in bytes of this message.
      Returns:
      this.
      Since:
      0.6
    • build

      public abstract NetworkEvent build()
      Deprecated.
      Builds and returns a NetworkEvent with the desired values.
      Returns:
      a NetworkEvent with the desired values.
      Since:
      0.5