public class NatsMessageSource extends org.springframework.integration.endpoint.AbstractMessageSource<Object> implements org.springframework.context.Lifecycle
| Constructor and Description |
|---|
NatsMessageSource(NatsConsumerDestination destination,
io.nats.client.Connection nc)
Create a message source.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doReceive() |
String |
getComponentType() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic NatsMessageSource(NatsConsumerDestination destination, io.nats.client.Connection nc)
destination - where to subscribenc - NATS connectionprotected Object doReceive()
doReceive in class org.springframework.integration.endpoint.AbstractMessageSource<Object>public boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic String getComponentType()
getComponentType in interface org.springframework.integration.support.context.NamedComponentCopyright © 2021 CNCF. All rights reserved.