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