public abstract class AbstractInternetProtocolReceivingChannelAdapter extends MessageProducerSupport implements ApplicationEventPublisherAware, SchedulingAwareRunnable, CommonSocketOptions
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
DEFAULT_PHASE
Constructor and Description |
---|
AbstractInternetProtocolReceivingChannelAdapter(int port) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTaskExecutor(String threadName)
Creates a default task executor if none was supplied.
|
protected void |
doStart()
Protected by lifecycleLock
|
protected void |
doStop()
Take no action by default.
|
protected ApplicationEventPublisher |
getApplicationEventPublisher() |
String |
getLocalAddress() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getSoReceiveBufferSize() |
int |
getSoTimeout() |
Executor |
getTaskExecutor() |
boolean |
isListening() |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setListening(boolean listening) |
void |
setLocalAddress(String localAddress)
On a multi-homed system, specifies the ip address of the network interface used to communicate.
|
void |
setPoolSize(int poolSize) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setSoReceiveBufferSize(int soReceiveBufferSize) |
void |
setSoTimeout(int soTimeout) |
void |
setTaskExecutor(Executor taskExecutor) |
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLongLived
setSoSendBufferSize
getBeanName, getComponentName, getComponentType
public AbstractInternetProtocolReceivingChannelAdapter(int port)
public int getPort()
public void setSoTimeout(int soTimeout)
setSoTimeout
in interface CommonSocketOptions
soTimeout
- The timeout.Socket.setSoTimeout(int)
,
DatagramSocket.setSoTimeout(int)
public int getSoTimeout()
public void setSoReceiveBufferSize(int soReceiveBufferSize)
setSoReceiveBufferSize
in interface CommonSocketOptions
soReceiveBufferSize
- The receive buffer size.Socket.setReceiveBufferSize(int)
,
DatagramSocket.setReceiveBufferSize(int)
public int getSoReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
public int getReceiveBufferSize()
public boolean isListening()
public void setListening(boolean listening)
listening
- the listening to setpublic String getLocalAddress()
public void setLocalAddress(String localAddress)
CommonSocketOptions
setLocalAddress
in interface CommonSocketOptions
localAddress
- The local address.public void setPoolSize(int poolSize)
public void setTaskExecutor(Executor taskExecutor)
public Executor getTaskExecutor()
protected ApplicationEventPublisher getApplicationEventPublisher()
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
protected void doStart()
doStart
in class MessageProducerSupport
protected void checkTaskExecutor(String threadName)
threadName
- The thread name.protected void doStop()
MessageProducerSupport
doStop
in class MessageProducerSupport