クラス TcpConnectionFactoryFactoryBean
java.lang.ObjectSE
org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBean
- 実装されたすべてのインターフェース:
Aware
、BeanClassLoaderAware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、FactoryBean<AbstractConnectionFactory>
、InitializingBean
、ApplicationContextAware
、ApplicationEventPublisherAware
、Lifecycle
public class TcpConnectionFactoryFactoryBean
extends AbstractFactoryBean<AbstractConnectionFactory>
implements Lifecycle, BeanNameAware, ApplicationEventPublisherAware, ApplicationContextAware
型と using-nio 属性に応じて、TcpN(et | io)(Server | Client)ConnectionFactory をインスタンス化します。
- 導入:
- 2.0.5
- 作成者:
- Gary Russell
フィールドサマリー
クラス org.springframework.beans.factory.config.AbstractFactoryBean から継承されたフィールド
logger
インターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTE
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected AbstractConnectionFactory
ClassSE<?>
boolean
void
setApplicationContext
(ApplicationContext applicationContext) void
setApplicationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) void
setApplySequence
(boolean applySequence) void
setBacklog
(int backlog) void
setBeanName
(StringSE name) void
setConnectTimeout
(int connectTimeout) void
setDeserializer
(Deserializer<?> deserializer) void
void
setInterceptorFactoryChain
(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) void
setLocalAddress
(StringSE localAddress) void
setLookupHost
(boolean lookupHost) void
setMapper
(TcpMessageMapper mapper) void
setNetConnectionSupport
(TcpNetConnectionSupport tcpNetSupport) void
setNioConnectionSupport
(TcpNioConnectionSupport tcpNioSupport) void
setPort
(int port) void
setReadDelay
(long readDelay) void
setSerializer
(Serializer<?> serializer) void
setSingleUse
(boolean singleUse) void
setSocketFactorySupport
(TcpSocketFactorySupport tcpSocketFactorySupport) void
setSocketSupport
(TcpSocketSupport tcpSocketSupport) void
setSoKeepAlive
(boolean soKeepAlive) void
setSoLinger
(int soLinger) void
setSoReceiveBufferSize
(int soReceiveBufferSize) void
setSoSendBufferSize
(int soSendBufferSize) void
setSoTcpNoDelay
(boolean soTcpNoDelay) void
setSoTimeout
(int soTimeout) void
setSoTrafficClass
(int soTrafficClass) void
setSslContextSupport
(TcpSSLContextSupport sslContextSupport) void
setSslHandshakeTimeout
(IntegerSE sslHandshakeTimeout) SSL ハンドシェイクのタイムアウトを設定します(SSL および NIO でのみ使用されます)。void
setTaskExecutor
(ExecutorSE taskExecutor) final void
void
setUsingDirectBuffers
(boolean usingDirectBuffers) void
setUsingNio
(boolean usingNio) void
start()
void
stop()
クラス org.springframework.beans.factory.config.AbstractFactoryBean から継承されたメソッド
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
コンストラクターの詳細
TcpConnectionFactoryFactoryBean
public TcpConnectionFactoryFactoryBean()TcpConnectionFactoryFactoryBean
メソッドの詳細
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAware
のsetApplicationContext
- 例外:
BeansException
getObjectType
- 次で指定:
- インターフェース
FactoryBean<AbstractConnectionFactory>
のgetObjectType
- 次で指定:
- クラス
AbstractFactoryBean<AbstractConnectionFactory>
のgetObjectType
createInstance
- 次で指定:
- クラス
AbstractFactoryBean<AbstractConnectionFactory>
のcreateInstance
setPort
public void setPort(int port) - パラメーター:
port
- 設定するポート
setHost
- パラメーター:
host
- 設定するホスト
setType
- パラメーター:
type
- 設定する型
setLocalAddress
- パラメーター:
localAddress
- ローカルアドレス。- 関連事項:
setSoTimeout
public void setSoTimeout(int soTimeout) - パラメーター:
soTimeout
- タイムアウト。- 関連事項:
setSoReceiveBufferSize
public void setSoReceiveBufferSize(int soReceiveBufferSize) - パラメーター:
soReceiveBufferSize
- 受信バッファサイズ。- 関連事項:
setSoSendBufferSize
public void setSoSendBufferSize(int soSendBufferSize) - パラメーター:
soSendBufferSize
- 送信バッファサイズ。- 関連事項:
setSoTcpNoDelay
public void setSoTcpNoDelay(boolean soTcpNoDelay) - パラメーター:
soTcpNoDelay
- 設定する TCP 遅延なし。- 関連事項:
setSoLinger
public void setSoLinger(int soLinger) - パラメーター:
soLinger
- 設定する SO Linger。- 関連事項:
setSoKeepAlive
public void setSoKeepAlive(boolean soKeepAlive) - パラメーター:
soKeepAlive
- 設定する SO キープアライブ。- 関連事項:
setSoTrafficClass
public void setSoTrafficClass(int soTrafficClass) - パラメーター:
soTrafficClass
- 設定する SO トラフィッククラス。- 関連事項:
setUsingNio
public void setUsingNio(boolean usingNio) - パラメーター:
usingNio
- 設定する usingNio
setUsingDirectBuffers
public void setUsingDirectBuffers(boolean usingDirectBuffers) - パラメーター:
usingDirectBuffers
- 設定する usingDirectBuffers。- 関連事項:
setTaskExecutor
- パラメーター:
taskExecutor
- タスク実行者。- 関連事項:
setDeserializer
- パラメーター:
deserializer
- デシリアライザ。- 関連事項:
setSerializer
- パラメーター:
serializer
- シリアライザ。- 関連事項:
setMapper
- パラメーター:
mapper
- マッパー。- 関連事項:
setSingleUse
public void setSingleUse(boolean singleUse) - パラメーター:
singleUse
- 設定する singleUse。- 関連事項:
setBacklog
public void setBacklog(int backlog) - パラメーター:
backlog
- バックログ。- 関連事項:
setInterceptorFactoryChain
public void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) - パラメーター:
interceptorFactoryChain
- インターセプターファクトリチェーン。- 関連事項:
setLookupHost
public void setLookupHost(boolean lookupHost) - パラメーター:
lookupHost
- 設定する lookupHost。- 関連事項:
start
public void start()stop
public void stop()isRunning
public boolean isRunning()setBeanName
- 次で指定:
- インターフェース
BeanNameAware
のsetBeanName
setApplySequence
public void setApplySequence(boolean applySequence) - パラメーター:
applySequence
- 設定する applySequence
setReadDelay
public void setReadDelay(long readDelay) setSslContextSupport
setSocketSupport
setNioConnectionSupport
setNetConnectionSupport
setSocketFactorySupport
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAware
のsetApplicationEventPublisher
setConnectTimeout
public void setConnectTimeout(int connectTimeout) setSslHandshakeTimeout
SSL ハンドシェイクのタイムアウトを設定します(SSL および NIO でのみ使用されます)。- パラメーター:
sslHandshakeTimeout
- タイムアウト。- 導入:
- 4.3.6