@@ -0,0 +1,1850 @@
+/**%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fusesource.amqpjms.jms;%0A%0Aimport org.fusesource.amqpjms.jms.message.JmsInboundMessageDispatch;%0A%0A/**%0A * Providers an interface for client's to listener to events related to%0A * an JmsConnection.%0A */%0Apublic interface JmsConnectionListener %7B%0A%0A    /**%0A     * Called when an unrecoverable error occurs and the Connection must be closed.%0A     *%0A     * @param error%0A     *        The error that triggered the failure.%0A     */%0A    void onConnectionFailure(Throwable error);%0A%0A    /**%0A     * Called when the Connection to the remote peer is lost.%0A     */%0A    void onConnectionInterrupted();%0A%0A    /**%0A     * Called when normal communication has been restored to a remote peer.%0A     */%0A    void onConnectionRestored();%0A%0A    /**%0A     * Called when a Connection is notified that a new Message has arrived for%0A     * one of it's currently active subscriptions.%0A     *%0A     * @param envelope%0A     *        The envelope that contains the incoming message and it's delivery information.%0A     */%0A    void onMessage(JmsInboundMessageDispatch envelope);%0A%0A%7D%0A

Add a JmsConnectionListener to allow client's to peek at Connection events.