Package com.adaptris.core.jms.sonic
Class SendChannelConfig
- java.lang.Object
-
- com.adaptris.core.jms.sonic.LargeMessageConfig
-
- com.adaptris.core.jms.sonic.SendChannelConfig
-
- All Implemented Interfaces:
MetadataHandlerContext
public final class SendChannelConfig extends LargeMessageConfig
Additional Configuration required forLargeMessageProducer
.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 Summary
Fields Modifier and Type Field Description static int
DEFAULT_FRAGMENT_SIZE_KB
The default fragment size.static int
DEFAULT_TTL
The default TTL for the initial message used to open the channel.static int
DEFAULT_WINDOW_SIZE
The default window 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 SendChannelConfig()
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
fragmentSizeKilobytes()
java.lang.Integer
getFragmentSizeKilobytes()
java.util.List<MetadataConverter>
getMetadataConverters()
java.lang.Integer
getTimeToLive()
java.lang.Integer
getWindowSize()
java.util.List<MetadataConverter>
metadataConverters()
void
setFragmentSizeKilobytes(java.lang.Integer fragmentSize)
Specify the fragment size in bytes.void
setMetadataConverters(java.util.List<MetadataConverter> mv)
Set the list of metadata converters to uses when converting from AdaptrisMessage to JMS Message.void
setTimeToLive(java.lang.Integer ttl)
Specify the initial time to live for the header message that is sent to the receiver.void
setWindowSize(java.lang.Integer i)
Set the number of fragments to send before blocking for an acknowledgement.protected int
timeToLive()
protected int
windowSize()
-
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_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
-
-
Method Detail
-
applyConfiguration
protected void applyConfiguration(progress.message.jclient.Channel channel) throws javax.jms.JMSException
- Specified by:
applyConfiguration
in classLargeMessageConfig
- 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()
-
metadataConverters
public java.util.List<MetadataConverter> metadataConverters()
-
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
-
-