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.GatheringByteChannel;
07:
08: /**
09: * Interface used by comms thread to request writing a channel. This interface makes it possible to slide a stack
10: * of between the write 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 TCJDK14ChannelWriter {
16: void doWrite(GatheringByteChannel channel);
17: }
|