Package org.frankframework.receivers
Class PullingListenerContainer<M>
java.lang.Object
org.frankframework.receivers.PullingListenerContainer<M>
- All Implemented Interfaces:
IThreadCountControllable
Container that provides threads to execute pulling listeners.
- Since:
- 4.8
- Author:
- Tim van der Leeuw
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
int
org.springframework.core.task.TaskExecutor
The thread-pool for spawning threads, injected by Springorg.springframework.transaction.PlatformTransactionManager
void
boolean
isIdle()
boolean
boolean
void
setIdle
(boolean b) void
setMetricsInitializer
(MetricsInitializer metricsInitializer) void
setReceiver
(Receiver<M> receiver) void
setTaskExecutor
(org.springframework.core.task.TaskExecutor taskExecutor) The thread-pool for spawning threads, injected by Springvoid
setTxManager
(org.springframework.transaction.PlatformTransactionManager txManager) void
start()
void
stop()
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Method Details
-
configure
public void configure() -
start
public void start() -
stop
public void stop() -
isThreadCountReadable
public boolean isThreadCountReadable()- Specified by:
isThreadCountReadable
in interfaceIThreadCountControllable
-
isThreadCountControllable
public boolean isThreadCountControllable()- Specified by:
isThreadCountControllable
in interfaceIThreadCountControllable
-
getCurrentThreadCount
public int getCurrentThreadCount()- Specified by:
getCurrentThreadCount
in interfaceIThreadCountControllable
-
getMaxThreadCount
public int getMaxThreadCount()- Specified by:
getMaxThreadCount
in interfaceIThreadCountControllable
-
increaseThreadCount
public void increaseThreadCount()- Specified by:
increaseThreadCount
in interfaceIThreadCountControllable
-
decreaseThreadCount
public void decreaseThreadCount()- Specified by:
decreaseThreadCount
in interfaceIThreadCountControllable
-
setIdle
public void setIdle(boolean b) -
isIdle
public boolean isIdle() -
setMetricsInitializer
-
getReceiver
-
setReceiver
-
getTxManager
public org.springframework.transaction.PlatformTransactionManager getTxManager() -
setTxManager
public void setTxManager(org.springframework.transaction.PlatformTransactionManager txManager) -
getTaskExecutor
public org.springframework.core.task.TaskExecutor getTaskExecutor()The thread-pool for spawning threads, injected by Spring -
setTaskExecutor
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) The thread-pool for spawning threads, injected by Spring
-