TCMessageSource.java :  » Net » Terracotta » com » tc » net » protocol » tcm » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » net » protocol » tcm » TCMessageSource.java
/*
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
 */
package com.tc.net.protocol.tcm;

import com.tc.util.TCTimeoutException;

/**
 * Interface for classes that produce/provide TC Messages
 * 
 * @author teck
 */
public interface TCMessageSource {
  public TCMessage getMessage(long timeout) throws InterruptedException, TCTimeoutException;

  /**
   * Non-blocking getMessage() call
   */
  public TCMessage poll();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.