@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4017") public final class BinaryLogs extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.grpc.BinaryLog |
createBinaryLog()
Creates a binary log that writes to a temp file.
|
static io.grpc.BinaryLog |
createBinaryLog(BinaryLogSink sink)
Creates a binary log with a custom
BinaryLogSink for receiving the logged data. |
static io.grpc.BinaryLog |
createCensusBinaryLog()
Same as
createBinaryLog() except the call IDs are derived from census. |
static io.grpc.BinaryLog |
createCensusBinaryLog(BinaryLogSink sink)
Same as
createBinaryLog(BinaryLogSink) except the call IDs are derived from census. |
public static io.grpc.BinaryLog createBinaryLog()
throws IOException
IOExceptionpublic static io.grpc.BinaryLog createBinaryLog(BinaryLogSink sink) throws IOException
BinaryLogSink for receiving the logged data.IOExceptionpublic static io.grpc.BinaryLog createCensusBinaryLog()
throws IOException
createBinaryLog() except the call IDs are derived from census.IOExceptionpublic static io.grpc.BinaryLog createCensusBinaryLog(BinaryLogSink sink) throws IOException
createBinaryLog(BinaryLogSink) except the call IDs are derived from census.IOException