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 Messages10 * 11 * @author teck12 */13 public interface TCMessageSource {14 public TCMessage getMessage(long timeout) throws InterruptedException , TCTimeoutException;15 16 /**17 * Non-blocking getMessage() call18 */19 public TCMessage poll();20 }