public interface Interceptor<R>
Readable.| Modifier and Type | Field and Description |
|---|---|
static int |
COMPLETED |
static int |
DEFAULT |
static int |
INCOMPLETED |
static int |
RESET |
static final int DEFAULT
static final int COMPLETED
static final int INCOMPLETED
static final int RESET
int intercept(int event,
Object context,
R result)
Readable, so it is possible to
customize reading process. Mostly Interceptor is used to control
asynchronous reads.event - type of intercepted event.context - read operation context.result - last read operation result.Readable
how it should continue reading operation.Copyright © 2016 Oracle Corporation. All Rights Reserved.