MessageBrokerAccessor.java :  » OSGi » netbeams » org » netbeams » dsp » Java Open Source

Java Open Source » OSGi » netbeams 
netbeams » org » netbeams » dsp » MessageBrokerAccessor.java
package org.netbeams.dsp;

import org.netbeams.dsp.message.Message;

public interface MessageBrokerAccessor {

  /**
   * Push message to into the infrastructure. The message broker implementation is responsible for
   * delivering the the messaget to the consumer.
   * 
   * @param request
   * @return
   * @throws DSPException
   */

  public void send(Message data ) throws DSPException;
  
  /**
   * Push message to into the infrastructure.
   * 
   * @param request
   * @return
   * @throws DSPException
   */
  public Message sendWaitForReply(Message request) throws DSPException;

  /**
   * 
   * @param request
   * @param waitTime
   * @return
   * @throws DSPException
   */
  public Message sendWaitForReply(Message request, long waitTime) throws DSPException;

}
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.