public class MockMessageDispatcherFactory<U extends Message,V extends Message> extends AbstractMessageDispatcherFactory<Void> implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
MessageDispatcherFactory
that handles all messages with a single consumer.
Used for testing.Constructor and Description |
---|
MockMessageDispatcherFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
<S extends Message,T extends Message> |
dispatch(SinkModule<S,T> module,
Void metadata,
T message) |
org.osgi.framework.BundleContext |
getBundleContext() |
MessageConsumer<U,V> |
getConsumer() |
String |
getMetricDomain() |
com.codahale.metrics.MetricRegistry |
getMetrics() |
io.opentracing.Tracer |
getTracer() |
void |
setConsumer(MessageConsumer<U,V> consumer) |
createAsyncDispatcher, createSyncDispatcher, createSyncDispatcher, getModuleMetadata, onDestroy, onInit
public <S extends Message,T extends Message> void dispatch(SinkModule<S,T> module, Void metadata, T message)
dispatch
in class AbstractMessageDispatcherFactory<Void>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public String getMetricDomain()
getMetricDomain
in class AbstractMessageDispatcherFactory<Void>
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in class AbstractMessageDispatcherFactory<Void>
public io.opentracing.Tracer getTracer()
getTracer
in class AbstractMessageDispatcherFactory<Void>
public com.codahale.metrics.MetricRegistry getMetrics()
getMetrics
in class AbstractMessageDispatcherFactory<Void>
public MessageConsumer<U,V> getConsumer()
public void setConsumer(MessageConsumer<U,V> consumer)
Copyright © 2020. All rights reserved.