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.tcm;
05:
06: import com.tc.util.TCTimeoutException;
07:
08: /**
09: * Interface for classes that produce/provide TC Messages
10: *
11: * @author teck
12: */
13: public interface TCMessageSource {
14: public TCMessage getMessage(long timeout)
15: throws InterruptedException, TCTimeoutException;
16:
17: /**
18: * Non-blocking getMessage() call
19: */
20: public TCMessage poll();
21: }
|