KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > WireProtocolMessageSink


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.transport;
5
6 /**
7  * Interface for objects that receive/consume TC Wire protocol Messages
8  *
9  * @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) throws WireProtocolException;
20
21   // /**
22
// * Inject the given wire protocol messages. Implementations are free to queue the messages (and return)
23
// * or act on them directly in the context of the current thread
24
// *
25
// * @param messages The message instances to put
26
// */
27
// public void putMessages(TCWireProtocolMessage[] messages);
28
}
Popular Tags