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.bytes.TCByteBufferFactory;
08: import com.tc.net.core.TCConnection;
09:
10: public class NullProtocolAdaptor implements TCProtocolAdaptor {
11:
12: public NullProtocolAdaptor() {
13: super ();
14: }
15:
16: public void addReadData(TCConnection source, TCByteBuffer[] data,
17: int length) {
18: return;
19: }
20:
21: public TCByteBuffer[] getReadBuffers() {
22: return TCByteBufferFactory.getFixedSizedInstancesForLength(
23: false, 4096);
24: }
25: }
|