Package io.grpc.protobuf.services
Class BinaryLogs
- java.lang.Object
- 
- io.grpc.protobuf.services.BinaryLogs
 
- 
 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4017") public final class BinaryLogs extends Object 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BinaryLogcreateBinaryLog()Creates a binary log that writes to a temp file.static BinaryLogcreateBinaryLog(BinaryLogSink sink)Deprecated.static BinaryLogcreateBinaryLog(BinaryLogSink sink, String configStr)Creates a binary log with a customBinaryLogSinkfor receiving the logged data, and a config string as defined by A16-binary-logging.
 
- 
- 
- 
Method Detail- 
createBinaryLogpublic static BinaryLog createBinaryLog() throws IOException 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:
- IOException
 
 - 
createBinaryLog@Deprecated public static BinaryLog createBinaryLog(BinaryLogSink sink) throws IOException Deprecated.Deprecated and will be removed in a future version of gRPC.- Throws:
- IOException
 
 - 
createBinaryLogpublic static BinaryLog createBinaryLog(BinaryLogSink sink, String configStr) throws IOException Creates a binary log with a customBinaryLogSinkfor receiving the logged data, and a config string as defined by A16-binary-logging.- Throws:
- IOException
 
 
- 
 
-