Class AggregatingMessageProducer<S,T>
- java.lang.Object
-
- org.opennms.core.ipc.sink.aggregation.AggregatingMessageProducer<S,T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,MessageDispatcher<S>
- Direct Known Subclasses:
AggregatingSinkMessageProducer
public abstract class AggregatingMessageProducer<S,T> extends java.lang.Object implements MessageDispatcher<S>
- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description AggregatingMessageProducer(java.lang.String id, AggregationPolicy<S,T,?> policy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract void
dispatch(T message)
void
send(S message)
-
-
-
Constructor Detail
-
AggregatingMessageProducer
public AggregatingMessageProducer(java.lang.String id, AggregationPolicy<S,T,?> policy)
-
-
Method Detail
-
send
public void send(S message)
- Specified by:
send
in interfaceMessageDispatcher<S>
-
dispatch
public abstract void dispatch(T message)
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-