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.transport;
05:
06: /**
07: * Interface for objects that receive/consume TC Wire protocol Messages
08: *
09: * @author teck
10: */
11: public interface WireProtocolMessageSink {
12:
13: /**
14: * Inject the given wire protocol message. Implementations are free to queue the message (and return) or act on it
15: * directly in the context of the current thread
16: *
17: * @param message The message instance to put
18: */
19: public void putMessage(WireProtocolMessage message)
20: throws WireProtocolException;
21:
22: // /**
23: // * Inject the given wire protocol messages. Implementations are free to queue the messages (and return)
24: // * or act on them directly in the context of the current thread
25: // *
26: // * @param messages The message instances to put
27: // */
28: // public void putMessages(TCWireProtocolMessage[] messages);
29: }
|