public static class CoffeeIOPipe.CoffeeIOPipes
extends java.lang.Object
| Constructor | Description |
|---|---|
CoffeeIOPipes(int bufferSize) |
Creates a pair of coffee pipes
|
CoffeeIOPipes(int bufferSize,
java.lang.Runnable writeCallback) |
Creates a pair of coffee pipes
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes all pipes.
|
CoffeeIOPipe |
getLeftPipe() |
Returns the first pipe
|
CoffeeIOPipe |
getRightPipe() |
Returns the second pipe
|
public CoffeeIOPipes(int bufferSize,
java.lang.Runnable writeCallback)
bufferSize - The size of the buffers, split two ways between each pipewriteCallback - the optional callback for when writes occurpublic CoffeeIOPipes(int bufferSize)
bufferSize - The size of the buffers, split two ways between each pipepublic CoffeeIOPipe getLeftPipe()
public CoffeeIOPipe getRightPipe()
public void close()