public class Reader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Reader.Context |
static class |
Reader.ProtocolValidationContext |
Modifier and Type | Field and Description |
---|---|
static long |
SUSPICIOUS_THRESHOLD |
Constructor and Description |
---|
Reader(SocketChannel sockChannel,
int slowConsumerRetries) |
Reader(SocketChannel sockChannel,
SystemRequestHandler systemRequestHandler) |
Modifier and Type | Method and Description |
---|---|
void |
closeContext() |
long |
getReceivedTraffic() |
static LongAdder |
getReceivedTrafficCounter() |
ByteBuffer |
readBytesFromChannelBlocking(boolean createNewBuffer,
int slowConsumerLatency,
int sizeLimit) |
String |
readProtocolValidationHeader(Reader.ProtocolValidationContext context) |
<T> ReplyPacket<T> |
readReply() |
<T> ReplyPacket<T> |
readReply(boolean createNewBuffer) |
<T> ReplyPacket<T> |
readReply(int slowConsumerTimeout,
int sizeLimit) |
MarshalInputStream |
readReply(Reader.Context ctx) |
<T> void |
readReply(ReplyPacket<T> packet) |
RequestPacket |
readRequest() |
RequestPacket |
readRequest(boolean createNewBuffer) |
MarshalInputStream |
readRequest(Reader.Context ctx) |
void |
resetContext() |
void |
setFilterManager(IOFilterManager filterManager) |
<T> ReplyPacket<T> |
unmarshallReply(MarshalInputStream stream) |
RequestPacket |
unmarshallRequest(MarshalInputStream stream) |
public Reader(SocketChannel sockChannel, int slowConsumerRetries)
public Reader(SocketChannel sockChannel, SystemRequestHandler systemRequestHandler)
public static LongAdder getReceivedTrafficCounter()
public MarshalInputStream readRequest(Reader.Context ctx) throws IOException, IOFilterException
IOException
IOFilterException
public RequestPacket readRequest(boolean createNewBuffer) throws IOException, ClassNotFoundException, IOFilterException
public RequestPacket readRequest() throws IOException, ClassNotFoundException, IOFilterException
public MarshalInputStream readReply(Reader.Context ctx) throws IOException, IOFilterException
IOException
IOFilterException
public <T> ReplyPacket<T> readReply(boolean createNewBuffer) throws IOException, ClassNotFoundException, IOFilterException
public <T> ReplyPacket<T> readReply() throws IOException, ClassNotFoundException, IOFilterException
public <T> void readReply(ReplyPacket<T> packet) throws IOException, ClassNotFoundException, IOFilterException
public <T> ReplyPacket<T> readReply(int slowConsumerTimeout, int sizeLimit) throws IOException, ClassNotFoundException, IOFilterException
public void setFilterManager(IOFilterManager filterManager)
public ByteBuffer readBytesFromChannelBlocking(boolean createNewBuffer, int slowConsumerLatency, int sizeLimit) throws IOException
IOException
public RequestPacket unmarshallRequest(MarshalInputStream stream) throws ClassNotFoundException, NoSuchObjectException
public <T> ReplyPacket<T> unmarshallReply(MarshalInputStream stream) throws ClassNotFoundException, NoSuchObjectException
public void closeContext()
public void resetContext()
public long getReceivedTraffic()
public String readProtocolValidationHeader(Reader.ProtocolValidationContext context) throws IOException
IOException
Copyright © GigaSpaces.