01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.core;
05:
06: import java.nio.channels.ScatteringByteChannel;
07:
08: /**
09: * Interface used by comms thread to request reading from a channel. This interface makes it possible to slide a stack
10: * of between the read calls and the socket. An example layer would be something that can deal with encrypt/decrypt of
11: * the stream
12: *
13: * @author teck
14: */
15: interface TCJDK14ChannelReader {
16: public void doRead(ScatteringByteChannel channel);
17: }
|