public class JpaPollingChannelAdapter extends IntegrationObjectSupport implements MessageSource<Object>
logger
Constructor and Description |
---|
JpaPollingChannelAdapter(JpaExecutor jpaExecutor)
Constructor taking a
JpaExecutor that provide all required JPA
functionality. |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
onInit()
Check for mandatory attributes
|
Message<Object> |
receive()
Uses
JpaExecutor.poll() to executes the JPA operation. |
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JpaPollingChannelAdapter(JpaExecutor jpaExecutor)
JpaExecutor
that provide all required JPA
functionality.jpaExecutor
- Must not be null.protected void onInit() throws Exception
onInit
in class IntegrationObjectSupport
Exception
- Any exception.public Message<Object> receive()
JpaExecutor.poll()
to executes the JPA operation.
If JpaExecutor.poll()
returns null, this method will return
null
. Otherwise, a new Message
is constructed and returned.receive
in interface MessageSource<Object>
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport