public abstract class AbstractKafkaChannel extends AbstractMessageChannel
AbstractMessageChannel.ChannelInterceptorListIntegrationManagement.ManagementOverrides| Modifier and Type | Field and Description |
|---|---|
protected String |
topic |
interceptors, metersEXPRESSION_PARSER, loggerINDEFINITE_TIMEOUTMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
AbstractKafkaChannel(org.springframework.kafka.core.KafkaOperations<?,?> template,
String topic)
Construct an instance with the provided paramters.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSend(Message<?> message,
long timeout)
Subclasses must implement this method.
|
protected String |
getGroupId() |
void |
setGroupId(String groupId)
Set the group id for the consumer; if not set, the bean name will be used.
|
addInterceptor, addInterceptor, destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, onInit, registerMetricsCaptor, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setLoggingEnabled, setMessageConverter, setShouldTrackafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetManagedName, getManagedType, getThisAs, setManagedName, setManagedTypegetBeanName, getComponentNameprotected final String topic
public AbstractKafkaChannel(org.springframework.kafka.core.KafkaOperations<?,?> template,
String topic)
template - the template.topic - the topic.public void setGroupId(String groupId)
groupId - the group id.protected String getGroupId()
protected boolean doSend(Message<?> message, long timeout)
AbstractMessageChanneldoSend in class AbstractMessageChannelmessage - The message.timeout - The timeout.