public class OsgiIpcManager extends AbstractMessageConsumerManager implements RpcClientFactory, org.springframework.beans.factory.DisposableBean
SINK_INITIAL_SLEEP_TIME, startupExecutor, waitForStartup
JMX_DOMAIN_RPC, LOG_PREFIX, RPC_COUNT, RPC_DURATION, RPC_FAILED, RPC_REQUEST_SIZE, RPC_RESPONSE_SIZE
LOG_PREFIX, METRIC_DISPATCH_TIME, METRIC_MESSAGE_SIZE, METRIC_MESSAGES_RECEIVED
Constructor and Description |
---|
OsgiIpcManager() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
<S extends Message,T extends Message> |
dispatch(SinkModule<S,T> module,
T message) |
<R extends RpcRequest,S extends RpcResponse> |
getClient(RpcModule<R,S> module) |
<S extends Message,T extends Message> |
registerConsumer(MessageConsumer<S,T> consumer) |
protected void |
startConsumingForModule(SinkModule<?,Message> module) |
protected void |
stopConsumingForModule(SinkModule<?,Message> module) |
<S extends Message,T extends Message> |
unregisterConsumer(MessageConsumer<S,T> consumer) |
getNumConsumerThreads, getStartupExecutor, unregisterAllConsumers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
markFailed, markRpcCount, updateDuration, updateRequestSize, updateResponseSize
getDispatchTimerMetric, updateMessageSize
public <R extends RpcRequest,S extends RpcResponse> RpcClient<R,S> getClient(RpcModule<R,S> module)
getClient
in interface RpcClientFactory
public <S extends Message,T extends Message> void dispatch(SinkModule<S,T> module, T message)
dispatch
in interface MessageConsumerManager
dispatch
in class AbstractMessageConsumerManager
protected void startConsumingForModule(SinkModule<?,Message> module) throws Exception
startConsumingForModule
in class AbstractMessageConsumerManager
Exception
protected void stopConsumingForModule(SinkModule<?,Message> module) throws Exception
stopConsumingForModule
in class AbstractMessageConsumerManager
Exception
public <S extends Message,T extends Message> void registerConsumer(MessageConsumer<S,T> consumer) throws Exception
registerConsumer
in interface MessageConsumerManager
registerConsumer
in class AbstractMessageConsumerManager
Exception
public <S extends Message,T extends Message> void unregisterConsumer(MessageConsumer<S,T> consumer) throws Exception
unregisterConsumer
in interface MessageConsumerManager
unregisterConsumer
in class AbstractMessageConsumerManager
Exception
Copyright © 2020. All rights reserved.