public class DefaultAckReader extends Object implements AckReader, org.springframework.beans.factory.InitializingBean
AckReader.AckReaderState
Constructor and Description |
---|
DefaultAckReader() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
AckdConfigurationDao |
getAckdConfigDao()
getAckdConfigDao
|
AckProcessor |
getAckProcessor()
getAckProcessor
|
Future<?> |
getFuture()
getFuture
|
String |
getName()
getName
|
AckReader.AckReaderState |
getState()
getState
|
void |
pause()
pause
|
void |
resume(ScheduledThreadPoolExecutor executor)
resume
|
void |
setAckdConfigDao(AckdConfigurationDao ackdConfigDao)
setAckdConfigDao
|
void |
setAckProcessor(AckProcessor ackProcessor)
setAckProcessor
|
void |
setName(String name)
setName
|
void |
start(ScheduledThreadPoolExecutor executor,
ReaderSchedule schedule,
boolean reloadConfig)
start
|
void |
stop()
stop
|
String |
toString() |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public void start(ScheduledThreadPoolExecutor executor, ReaderSchedule schedule, boolean reloadConfig) throws IllegalStateException
start
start
in interface AckReader
executor
- a ScheduledThreadPoolExecutor
object.schedule
- a ReaderSchedule
object.reloadConfig
- a boolean.IllegalStateException
public void pause() throws IllegalStateException
pause
pause
in interface AckReader
IllegalStateException
- if any.public void resume(ScheduledThreadPoolExecutor executor) throws IllegalStateException
resume
resume
in interface AckReader
executor
- a ScheduledThreadPoolExecutor
object.IllegalStateException
public void stop() throws IllegalStateException
stop
stop
in interface AckReader
IllegalStateException
- if any.public void setAckProcessor(AckProcessor ackProcessor)
setAckProcessor
setAckProcessor
in interface AckReader
ackProcessor
- a AckProcessor
object.public AckProcessor getAckProcessor()
getAckProcessor
getAckProcessor
in interface AckReader
AckProcessor
object.public void setAckdConfigDao(AckdConfigurationDao ackdConfigDao)
setAckdConfigDao
ackdConfigDao
- a AckdConfigurationDao
object.public AckdConfigurationDao getAckdConfigDao()
getAckdConfigDao
AckdConfigurationDao
object.public AckReader.AckReaderState getState()
getState
public String getName()
getName
Copyright © 2021. All rights reserved.