public class KafkaRemoteMessageDispatcherFactory extends AbstractMessageDispatcherFactory<String>
Constructor and Description |
---|
KafkaRemoteMessageDispatcherFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
<S extends Message,T extends Message> |
dispatch(SinkModule<S,T> module,
String topic,
T message) |
<S extends Message,T extends Message> |
getModuleMetadata(SinkModule<S,T> module)
Optionally build meta-data or state information for the module which will
be passed on all the calls to
AbstractMessageDispatcherFactory.dispatch(org.opennms.core.ipc.sink.api.SinkModule<S, T>, W, T) . |
void |
init() |
void |
setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin) |
createAsyncDispatcher, createSyncDispatcher, createSyncDispatcher, getMetrics
public <S extends Message,T extends Message> String getModuleMetadata(SinkModule<S,T> module)
AbstractMessageDispatcherFactory
AbstractMessageDispatcherFactory.dispatch(org.opennms.core.ipc.sink.api.SinkModule<S, T>, W, T)
.
This is useful for calculating things like message headers which are
re-used on every dispatch.getModuleMetadata
in class AbstractMessageDispatcherFactory<String>
public <S extends Message,T extends Message> void dispatch(SinkModule<S,T> module, String topic, T message)
dispatch
in class AbstractMessageDispatcherFactory<String>
public void init() throws IOException
IOException
public void destroy()
public void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
Copyright © 2017. All rights reserved.