public interface Interceptor<R>
Readable
.Modifier and Type | Field and Description |
---|---|
static int |
COMPLETED |
static int |
DEFAULT |
static int |
INCOMPLETED |
static int |
RESET |
Modifier and Type | Method and Description |
---|---|
int |
intercept(int event,
Object context,
R result)
Callback method is called by
Readable , so it is possible to
customize reading process. |
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 © 2015 Oracle Corporation. All rights reserved.