Class SendChannelConfig

  • All Implemented Interfaces:
    MetadataHandlerContext

    public final class SendChannelConfig
    extends LargeMessageConfig
    Additional Configuration required for LargeMessageProducer.

    In the adapter configuration file this class is aliased as sonic-send-channel-config which is the preferred alternative to the fully qualified classname when building your configuration.

    • Field Detail

      • DEFAULT_WINDOW_SIZE

        public static final int DEFAULT_WINDOW_SIZE
        The default window size.
        See Also:
        Constant Field Values
      • DEFAULT_FRAGMENT_SIZE_KB

        public static final int DEFAULT_FRAGMENT_SIZE_KB
        The default fragment size.
        See Also:
        Constant Field Values
      • DEFAULT_TTL

        public static final int DEFAULT_TTL
        The default TTL for the initial message used to open the channel.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendChannelConfig

        public SendChannelConfig()
        Standard constructor.
        • monitor-timeout-ms = 5000L
        • move-jms-headers = false
        • report-all-errors = false
        • retry-count = 10
        • retry-interval = 10000L
        • channel-timeout = 60000
        • time-to-live = 60000
        • window-size = 10
        • fragment-size-kilobytes = 1024
    • Method Detail

      • applyConfiguration

        protected void applyConfiguration​(progress.message.jclient.Channel channel)
                                   throws javax.jms.JMSException
        Specified by:
        applyConfiguration in class LargeMessageConfig
        Throws:
        javax.jms.JMSException
      • getWindowSize

        public java.lang.Integer getWindowSize()
        Returns:
        the windowSize
      • setWindowSize

        public void setWindowSize​(java.lang.Integer i)
        Set the number of fragments to send before blocking for an acknowledgement.
        Parameters:
        i - the windowSize to set
        See Also:
        Channel.setWindowSize(int)
      • windowSize

        protected int windowSize()
      • getFragmentSizeKilobytes

        public java.lang.Integer getFragmentSizeKilobytes()
        Returns:
        the fragment size in kilobytes
      • setFragmentSizeKilobytes

        public void setFragmentSizeKilobytes​(java.lang.Integer fragmentSize)
        Specify the fragment size in bytes.
        Parameters:
        fragmentSize - the fragment size in kilobytes
        See Also:
        Channel.setFragmentSize(int)
      • fragmentSizeKilobytes

        protected int fragmentSizeKilobytes()
      • getTimeToLive

        public java.lang.Integer getTimeToLive()
        Returns:
        the timeToLive
      • setTimeToLive

        public void setTimeToLive​(java.lang.Integer ttl)
        Specify the initial time to live for the header message that is sent to the receiver.
        Parameters:
        ttl - the timeToLive to set
      • timeToLive

        protected int timeToLive()
      • getMetadataConverters

        public java.util.List<MetadataConverter> getMetadataConverters()
        Returns:
        the metadataConverters
      • setMetadataConverters

        public void setMetadataConverters​(java.util.List<MetadataConverter> mv)
        Set the list of metadata converters to uses when converting from AdaptrisMessage to JMS Message.
        Parameters:
        mv - list of message converters