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
IOException
IOFilterException
public void writeRequest(RequestPacket packet, boolean reuseBuffer) throws IOException, IOFilterException
IOException
IOFilterException
public void writeRequest(RequestPacket packet) throws IOException, IOFilterException
IOException
IOFilterException
public void writeReply(ReplyPacket packet, boolean reuseBuffer, Writer.Context ctx) throws IOException, IOFilterException
IOException
IOFilterException
public void writeReply(ReplyPacket packet, boolean reuseBuffer) throws IOException, IOFilterException
IOException
IOFilterException
public void writeReply(ReplyPacket packet) throws IOException, IOFilterException
IOException
IOFilterException
public boolean isOpen()
public void setFilterManager(IOFilterManager filterManager)
setFilterManager
in interface IChannelWriter
public boolean isBlocking()
isBlocking
in interface IChannelWriter
public void writeBytesToChannelNoneBlocking(Writer.Context ctx, boolean restoreReadInterest) throws IOException
writeBytesToChannelNoneBlocking
in interface IChannelWriter
IOException
protected void noneBlockingWrite(Writer.Context ctx) throws IOException
IOException
public void writeBytesToChannelBlocking(ByteBuffer dataBuffer) throws IOException, ClosedChannelException, SlowConsumerException
writeBytesToChannelBlocking
in interface IChannelWriter
IOException
ClosedChannelException
SlowConsumerException
public void onWriteEvent() throws IOException
IOException
noneBlockingWrite(com.gigaspaces.lrmi.nio.Writer.Context)
public void closeContext()
public void resetContext()
public long getGeneratedTraffic()
public void writeProtocolValidationHeader() throws IOException
IOException
Copyright © GigaSpaces.