public class ChannelWriterController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Pipe<RawDataSchema> |
pipe |
| Constructor and Description |
|---|
ChannelWriterController(Pipe<RawDataSchema> pipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
abandonWrite()
Dispose of everything written and restore to the way it was before
beginWrite() was called.
|
ChannelWriter |
beginWrite()
Open the message for writing
|
void |
commitWrite()
Store the message and move the pointers forward so the data can be
consumed later.
|
boolean |
hasRoomForWrite()
check if connection data can take another message
|
protected final Pipe<RawDataSchema> pipe
public ChannelWriterController(Pipe<RawDataSchema> pipe)
public boolean hasRoomForWrite()
public ChannelWriter beginWrite()
public void abandonWrite()
public void commitWrite()
Copyright © 2018. All Rights Reserved.