KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > tcm > TCMessageSource


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.tcm;
5
6 import com.tc.util.TCTimeoutException;
7
8 /**
9  * Interface for classes that produce/provide TC Messages
10  *
11  * @author teck
12  */

13 public interface TCMessageSource {
14   public TCMessage getMessage(long timeout) throws InterruptedException JavaDoc, TCTimeoutException;
15
16   /**
17    * Non-blocking getMessage() call
18    */

19   public TCMessage poll();
20 }
Popular Tags