Package io.grpc.services
Class BinaryLogs
- java.lang.Object
-
- io.grpc.services.BinaryLogs
-
@Deprecated @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4017") public final class BinaryLogs extends java.lang.Object
Deprecated.UseBinaryLogsinstead.Utility class to create BinaryLog instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BinaryLogcreateBinaryLog()Deprecated.Creates a binary log that writes to a temp file.static BinaryLogcreateBinaryLog(BinaryLogSink sink)Deprecated.static BinaryLogcreateBinaryLog(BinaryLogSink sink, java.lang.String configStr)Deprecated.Creates a binary log with a customBinaryLogSinkfor receiving the logged data, and a config string as defined by A16-binary-logging.
-
-
-
Method Detail
-
createBinaryLog
public static BinaryLog createBinaryLog() throws java.io.IOException
Deprecated.Creates a binary log that writes to a temp file. Warning: this implementation is not performance optimized, and RPCs will experience back pressure if disk IO does not keep up.- Throws:
java.io.IOException
-
createBinaryLog
@Deprecated public static BinaryLog createBinaryLog(BinaryLogSink sink) throws java.io.IOException
Deprecated.Deprecated and will be removed in a future version of gRPC.- Throws:
java.io.IOException
-
createBinaryLog
public static BinaryLog createBinaryLog(BinaryLogSink sink, java.lang.String configStr) throws java.io.IOException
Deprecated.Creates a binary log with a customBinaryLogSinkfor receiving the logged data, and a config string as defined by A16-binary-logging.- Throws:
java.io.IOException
-
-