Interface AdaptrisConnection

    • Method Detail

      • retrieveExceptionListeners

        java.util.Set<StateManagedComponent> retrieveExceptionListeners()
        Return a collection of components that need to be restarted on exception.
        Returns:
        a list of Components that need to be restarted of any exceptions.
        See Also:
        ConnectionErrorHandler
      • addExceptionListener

        void addExceptionListener​(StateManagedComponent comp)
        Add a component that will be notified upon exception.
        Parameters:
        comp - the component that will be notified.
      • addMessageProducer

        void addMessageProducer​(AdaptrisMessageProducer producer)
                         throws CoreException

        Adds a AdaptrisMessageProducer to this connection's internal store of message producers.

        Parameters:
        producer - the AdaptrisMessageProducer to add
        Throws:
        CoreException - wrapping any underlying Exceptions
      • retrieveMessageProducers

        java.util.Set<AdaptrisMessageProducer> retrieveMessageProducers()

        Returns a List of this connection's AdaptrisMessageProducers.

        Returns:
        a List of this connection's AdaptrisMessageProducers
      • addMessageConsumer

        void addMessageConsumer​(AdaptrisMessageConsumer consumer)
                         throws CoreException

        Adds a AdaptrisMessageConsumer to this connection's internal store of message consumers.

        Parameters:
        consumer - the AdaptrisMessageConsumer to add
        Throws:
        CoreException - wrapping any underlying Exceptions
      • retrieveMessageConsumers

        java.util.Set<AdaptrisMessageConsumer> retrieveMessageConsumers()

        Returns a List of this connection's AdaptrisMessageConsumers.

        Returns:
        a List of this connection's AdaptrisMessageConsumers
      • retrieveConnection

        <T> T retrieveConnection​(java.lang.Class<T> type)
        Return the connection as represented by this connection
        Parameters:
        type - the type of connection
        Returns:
        the connection