public class IOBlockFilterContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
MESSAGE_SUFFIX |
static byte |
PREFIX_PART |
| Constructor and Description |
|---|
IOBlockFilterContainer(Reader reader,
IChannelWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginHandshake(IOFilterContext filterContext) |
IOFilterContext |
createContext(IOBlockFilter filter) |
byte[] |
handleBlockingContant(byte[] bytes,
IOFilterContext filterContext,
int slowConsumerTimeout) |
byte[] |
handleNoneBlockingContent(Reader.Context ctx,
byte[] bytes,
IOFilterContext filterContext) |
static byte[] |
toBytes(ByteBuffer buf) |
static List<Byte> |
toList(byte[] array) |
void |
unwrap(IOFilterContext context) |
void |
wrap(IOFilterContext context) |
void |
writeBytesBlocking(ByteBuffer dataBuffer,
IOFilterContext filterContext) |
void |
writeBytesNonBlocking(Writer.Context ctx,
IOFilterContext filterContext) |
public static final byte MESSAGE_SUFFIX
public static final byte PREFIX_PART
public IOBlockFilterContainer(Reader reader, IChannelWriter writer)
public void wrap(IOFilterContext context) throws IOFilterException
IOFilterExceptionpublic void unwrap(IOFilterContext context) throws IOFilterException
IOFilterExceptionpublic IOFilterContext createContext(IOBlockFilter filter)
public void writeBytesNonBlocking(Writer.Context ctx, IOFilterContext filterContext) throws IOFilterException, IOException
IOFilterExceptionIOExceptionpublic byte[] handleNoneBlockingContent(Reader.Context ctx, byte[] bytes, IOFilterContext filterContext) throws IOFilterException
IOFilterExceptionpublic byte[] handleBlockingContant(byte[] bytes,
IOFilterContext filterContext,
int slowConsumerTimeout)
throws ClosedChannelException,
IOFilterException
public void writeBytesBlocking(ByteBuffer dataBuffer, IOFilterContext filterContext) throws IOFilterException, IOException
IOFilterExceptionIOExceptionpublic void beginHandshake(IOFilterContext filterContext) throws IOFilterException, IOException
IOFilterExceptionIOExceptionpublic static byte[] toBytes(ByteBuffer buf)
Copyright © GigaSpaces.