Package org.symphonyoss.s2.canon.runtime
Class AsynchronousProducer<V>
- java.lang.Object
-
- org.symphonyoss.s2.canon.runtime.SynchronousProducer<V>
-
- org.symphonyoss.s2.canon.runtime.AsynchronousProducer<V>
-
- Type Parameters:
V- The listener payload
- All Implemented Interfaces:
IProducer<V>,IProducerImpl<V>
public class AsynchronousProducer<V> extends SynchronousProducer<V>
An implementation of IProducer which calls listeners from a Cached Thread Pool. If listener implementations block then there may be performance issues so they should not do so, but they need not be thread safe.- Author:
- bruce.skingle
-
-
Constructor Summary
Constructors Constructor Description AsynchronousProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisShutdown()protected voidnotify(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener, V value, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)voidshutdown()List<Runnable>shutdownNow()-
Methods inherited from class org.symphonyoss.s2.canon.runtime.SynchronousProducer
addListener, produce, removeListener
-
-
-
-
Method Detail
-
notify
protected void notify(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener, V value, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
- Overrides:
notifyin classSynchronousProducer<V>
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
-