Package io.grpc.protobuf.services
Class TempFileSink
java.lang.Object
io.grpc.protobuf.services.TempFileSink
- All Implemented Interfaces:
BinaryLogSink
,Closeable
,AutoCloseable
The output file goes to the JVM's temp dir with a prefix of BINARY_INFO. The proto messages
are written serially using
MessageLite.writeDelimitedTo(OutputStream)
.-
Field Details
-
logger
-
outPath
-
out
-
closed
private boolean closed
-
-
Constructor Details
-
TempFileSink
TempFileSink() throws IOException- Throws:
IOException
-
-
Method Details
-
getPath
String getPath() -
write
public void write(com.google.protobuf.MessageLite message) Description copied from interface:BinaryLogSink
Writes themessage
to the destination.- Specified by:
write
in interfaceBinaryLogSink
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
closeQuietly
private void closeQuietly()
-