Class ReceiveChannelConfig

  • All Implemented Interfaces:
    MetadataHandlerContext

    public final class ReceiveChannelConfig
    extends LargeMessageConfig
    Additional configuration required for LargeMessageConsumer.

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

    • Field Detail

      • DEFAULT_BLOCK_SIZE_KB

        public static final int DEFAULT_BLOCK_SIZE_KB
        The default block size.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReceiveChannelConfig

        public ReceiveChannelConfig()
        Standard constructor.
        • monitor-timeout-ms = 5000L
        • move-jms-headers = false
        • report-all-errors = false
        • retry-count = 10
        • retry-interval = 10000L
        • channel-timeout = 60000
        • block-size-kilobytes = 0
    • 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
      • getBlockSizeKilobytes

        public java.lang.Integer getBlockSizeKilobytes()
        Set the underlying block size for a RecoverableFileChannel
        Returns:
        the block syze in kilobytes
        See Also:
        RecoverableFileChannel.setBlockSize(int)
      • setBlockSizeKilobytes

        public void setBlockSizeKilobytes​(java.lang.Integer blockSize)
        Parameters:
        blockSize - the block syze in kilobytes
      • blockSizeKilobytes

        protected int blockSizeKilobytes()