IClientSession.java :  » JMS » UberMQ » com » ubermq » jms » client » Java Open Source

Java Open Source » JMS » UberMQ 
UberMQ » com » ubermq » jms » client » IClientSession.java
package com.ubermq.jms.client;

import com.ubermq.kernel.*;
import java.io.*;

/**
 * Serves as a context for all connections of a particular class
 * in the process space.
 * This exists so we can do efficient network I/O when applicable.
 */
public interface IClientSession
{
  /**
   * Creates a connection as described by the ConnectionDescriptor,
   * using a particular message processor and associated with a JMS
   * connection object.
   * @param cxn the JMS connection object to associate with the new
   * connection.
   * @param descriptor provides information to the session on how
   * to connect to the destination.
   * @param proc the message processor to handle datagrams from the
   * new connection.
   */
  public IConnectionInfo connect(javax.jms.Connection cxn,
                   ConnectionDescriptor descriptor,
                   IMessageProcessor proc)
    throws java.io.IOException;
  
  /**
   * Indicates that the connection has been started and that I/O
   * should commence.
   */
  public void started(IConnectionInfo c)
    throws IOException;
}
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.