T - the type of data being passedpublic class SynchronizedSink<T> extends Object implements Sink<T>
| Constructor and Description |
|---|
SynchronizedSink(Sink<T> other)
Constructs a new synchronized sink using an internal mutex
|
SynchronizedSink(Sink<T> other,
Object mutex)
Constructs a new synchronized sink using a specified mutex
|
public SynchronizedSink(Sink<T> other, Object mutex)
other - the downstream sink which is to be protectedmutex - a mutex to use for synchronizationpublic void put(T t) throws RippleException
SinkSinkput in interface Sink<T>t - the data item being passedRippleException - if a data handling error occorspublic Object getMutex()
Copyright © 2007-2012 fortytwo.net. All Rights Reserved.