public static class WorkerProcessProtocolZero.CommandSender extends Object implements WorkerProcessProtocol.CommandSender
| Constructor and Description |
|---|
CommandSender(OutputStream processStdin,
InputStream processStdout,
Path stdErr,
Runnable onClose,
java.util.function.Supplier<Boolean> isAlive) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Instructs the CommandReceiver to shut itself down.
|
void |
handshake(int messageId) |
WorkerProcessProtocol.CommandResponse |
receiveNextCommandResponse() |
void |
send(int messageId,
com.facebook.buck.worker.WorkerProcessCommand command) |
public CommandSender(OutputStream processStdin, InputStream processStdout, Path stdErr, Runnable onClose, java.util.function.Supplier<Boolean> isAlive)
public void handshake(int messageId)
throws IOException
handshake in interface WorkerProcessProtocol.CommandSenderIOExceptionpublic void send(int messageId,
com.facebook.buck.worker.WorkerProcessCommand command)
throws IOException
send in interface WorkerProcessProtocol.CommandSenderIOExceptionpublic WorkerProcessProtocol.CommandResponse receiveNextCommandResponse() throws IOException
receiveNextCommandResponse in interface WorkerProcessProtocol.CommandSenderIOExceptionpublic void close()
throws IOException
WorkerProcessProtocol.CommandSenderclose in interface WorkerProcessProtocol.CommandSenderclose in interface Closeableclose in interface AutoCloseableIOException