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.protocol;
05:
06: import com.tc.bytes.TCByteBuffer;
07: import com.tc.net.core.TCConnection;
08:
09: /**
10: * Message adaptor/parser for incoming data from TCConnection
11: *
12: * @author teck
13: */
14: public interface TCProtocolAdaptor {
15: public void addReadData(TCConnection source, TCByteBuffer data[],
16: int length) throws TCProtocolException;
17:
18: public TCByteBuffer[] getReadBuffers();
19: }
|