Class TimedInactivityProducerSessionFactory

  • All Implemented Interfaces:
    ComponentLifecycle, ProducerSessionFactory

    public class TimedInactivityProducerSessionFactory
    extends ProducerSessionFactoryImpl
    Implementation of ProducerSessionFactory that creates a new session/producer based an inactivity timer.

    This implementaton refreshes the session based on some on the specified interval between the last message and the current message

    In the adapter configuration file this class is aliased as jms-timed-inactivity-producer-session which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • TimedInactivityProducerSessionFactory

        public TimedInactivityProducerSessionFactory()
      • TimedInactivityProducerSessionFactory

        public TimedInactivityProducerSessionFactory​(TimeInterval interval)
    • Method Detail

      • getInactivityInterval

        public TimeInterval getInactivityInterval()
      • setInactivityInterval

        public void setInactivityInterval​(TimeInterval inactivityInterval)
        Set the inactivity interval before a new session is created.
        Parameters:
        inactivityInterval - the interval, if not specified, the default is 2 hours.