Class MessageEvent.Builder
java.lang.Object
io.opencensus.trace.MessageEvent.Builder
- Enclosing class:
MessageEvent
Builder class for
MessageEvent.- Since:
- 0.12
-
Method Summary
Modifier and TypeMethodDescriptionabstract MessageEventbuild()Builds and returns aMessageEventwith the desired values.abstract MessageEvent.BuildersetCompressedMessageSize(long compressedMessageSize) Sets the compressed message size.abstract MessageEvent.BuildersetUncompressedMessageSize(long uncompressedMessageSize) Sets the uncompressed message size.
-
Method Details
-
setUncompressedMessageSize
Sets the uncompressed message size.- Parameters:
uncompressedMessageSize- represents the uncompressed size in bytes of this message.- Returns:
- this.
- Since:
- 0.12
-
setCompressedMessageSize
Sets the compressed message size.- Parameters:
compressedMessageSize- represents the compressed size in bytes of this message.- Returns:
- this.
- Since:
- 0.12
-
build
Builds and returns aMessageEventwith the desired values.- Returns:
- a
MessageEventwith the desired values. - Since:
- 0.12
-