ConnectionDelegate.java |
/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.jms.client; import java.util.Enumeration; import javax.jms.ExceptionListener; import javax.jms.JMSException; import org.jboss.jms.destination.JBossTemporaryDestination; /** * The implementation of a connection * * @author <a href="mailto:adrian@jboss.org>Adrian Brock</a> * @version $Revision: 1.3 $ */ public interface ConnectionDelegate extends Lifecycle { // Constants ----------------------------------------------------- // Public -------------------------------------------------------- /** * Create a session * * @param transacted whether the session is transacted * @param the acknowledgement mode * @return the session * @throws JMSException for any error */ SessionDelegate createSession(boolean isXA, boolean transacted, int acknowledgeMode) throws JMSException; /** * Retrieve the extension property names * * @return an enumeration of extension properties * @throws JMSException for any error */ Enumeration getJMSXPropertyNames() throws JMSException; /** * Retrieve the client id * * @return the client id * @throws JMSException for any error */ String getClientID() throws JMSException; /** * Delete the temporary destination * * @param the destination to delete * @throws JMSException for any error */ void deleteTempDestination(JBossTemporaryDestination destination); /** * Set the client id * * @param id the client id * @throws JMSException for any error */ void setClientID(String id) throws JMSException; /** * Set the exception listener * * @param the new exception listener * @throws JMSException for any error */ void setExceptionListener(ExceptionListener listener) throws JMSException; /** * Start the connection * * @throws JMSException for any error */ void start() throws JMSException; /** * Stop the connection * * @throws JMSException for any error */ void stop() throws JMSException; // Inner Classes -------------------------------------------------- }
ConnectionDelegate.java |