public class JpaPollingChannelAdapter extends AbstractMessageSource<Object>
IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
JpaPollingChannelAdapter(JpaExecutor jpaExecutor)
Constructor taking a
JpaExecutor that provide all required JPA
functionality. |
Modifier and Type | Method and Description |
---|---|
protected Object |
doReceive()
Use
JpaExecutor.poll() to executes the JPA operation. |
String |
getComponentType() |
protected void |
onInit()
Check for mandatory attributes
|
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntegrationPatternType
getThisAs
public JpaPollingChannelAdapter(JpaExecutor jpaExecutor)
JpaExecutor
that provide all required JPA
functionality.jpaExecutor
- Must not be null.protected void onInit()
onInit
in class AbstractExpressionEvaluator
protected Object doReceive()
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.doReceive
in class AbstractMessageSource<Object>
public String getComponentType()