Package com.adaptris.core.jms.sonic
Class ReceiveChannelConfig
- java.lang.Object
-
- com.adaptris.core.jms.sonic.LargeMessageConfig
-
- com.adaptris.core.jms.sonic.ReceiveChannelConfig
-
- All Implemented Interfaces:
MetadataHandlerContext
public final class ReceiveChannelConfig extends LargeMessageConfig
Additional configuration required forLargeMessageConsumer
.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 Summary
Fields Modifier and Type Field Description static int
DEFAULT_BLOCK_SIZE_KB
The default block size.-
Fields inherited from class com.adaptris.core.jms.sonic.LargeMessageConfig
BYTES_IN_A_KILOBYTE, DEFAULT_CHANNEL_TIMEOUT, DEFAULT_MONITOR_TIMEOUT_MS, DEFAULT_RETRY_COUNT, DEFAULT_RETRY_INTERVAL, log
-
-
Constructor Summary
Constructors Constructor Description ReceiveChannelConfig()
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyConfiguration(progress.message.jclient.Channel channel)
protected int
blockSizeKilobytes()
java.lang.Integer
getBlockSizeKilobytes()
Set the underlying block size for a RecoverableFileChanneljava.util.List<MetadataConverter>
metadataConverters()
void
setBlockSizeKilobytes(java.lang.Integer blockSize)
-
Methods inherited from class com.adaptris.core.jms.sonic.LargeMessageConfig
applyBaseConfiguration, channelTimeout, getChannelTimeout, getLocalStoreDirectory, getMetadataFilter, getMonitorTimeoutMs, getMoveJmsHeaders, getReportAllErrors, getRetryCount, getRetryInterval, logChannelInfo, metadataFilter, monitorTimeoutMs, moveJmsHeaders, reportAllErrors, retryCount, retryInterval, setChannelTimeout, setMetadataFilter, setMonitorTimeoutMs, setMoveJmsHeaders, setReportAllErrors, setRetryCount, setRetryInterval, verify
-
-
-
-
Field Detail
-
DEFAULT_BLOCK_SIZE_KB
public static final int DEFAULT_BLOCK_SIZE_KB
The default block size.- See Also:
- Constant Field Values
-
-
Method Detail
-
applyConfiguration
protected void applyConfiguration(progress.message.jclient.Channel channel) throws javax.jms.JMSException
- Specified by:
applyConfiguration
in classLargeMessageConfig
- 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()
-
metadataConverters
public java.util.List<MetadataConverter> metadataConverters()
-
-