public class Writer extends Object implements IChannelWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
Writer.ChannelEntryContext |
static class |
Writer.Context |
static class |
Writer.SystemResponseContext |
| Constructor and Description |
|---|
Writer(SocketChannel sockChannel,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries,
IWriteInterestManager writeInterestManager) |
Writer(SocketChannel sockChannel,
IWriteInterestManager writeInterestManager) |
public Writer(SocketChannel sockChannel, IWriteInterestManager writeInterestManager)
public Writer(SocketChannel sockChannel, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries, IWriteInterestManager writeInterestManager)
public static LongAdder getGeneratedTrafficCounter()
public static LongAdder getPendingWritesCounter()
public void setWriteInterestManager(IWriteInterestManager writeInterestManager)
public SocketAddress getEndPointAddress()
public void writeRequest(RequestPacket packet, boolean reuseBuffer, Writer.Context ctx) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic void writeRequest(RequestPacket packet, boolean reuseBuffer) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic void writeRequest(RequestPacket packet) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic void writeReply(ReplyPacket packet, boolean reuseBuffer, Writer.Context ctx) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic void writeReply(ReplyPacket packet, boolean reuseBuffer) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic void writeReply(ReplyPacket packet) throws IOException, IOFilterException
IOExceptionIOFilterExceptionpublic boolean isOpen()
public void setFilterManager(IOFilterManager filterManager)
setFilterManager in interface IChannelWriterpublic boolean isBlocking()
isBlocking in interface IChannelWriterpublic void writeBytesToChannelNoneBlocking(Writer.Context ctx, boolean restoreReadInterest) throws IOException
writeBytesToChannelNoneBlocking in interface IChannelWriterIOExceptionprotected void noneBlockingWrite(Writer.Context ctx) throws IOException
IOExceptionpublic void writeBytesToChannelBlocking(ByteBuffer dataBuffer) throws IOException, ClosedChannelException, SlowConsumerException
writeBytesToChannelBlocking in interface IChannelWriterIOExceptionClosedChannelExceptionSlowConsumerExceptionpublic void onWriteEvent()
throws IOException
IOExceptionnoneBlockingWrite(com.gigaspaces.lrmi.nio.Writer.Context)public void closeContext()
public void resetContext()
public long getGeneratedTraffic()
public void writeProtocolValidationHeader()
throws IOException
IOExceptionCopyright © GigaSpaces.