org.fiolino.common.processing.sink.ThreadsafeChainedSink Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
General structure to easily create dynamic logic via MethodHandles and others.
package org.fiolino.common.processing.sink;
import javax.annotation.concurrent.ThreadSafe;
/**
* Created by kuli on 31.03.16.
*/
@ThreadSafe
public abstract class ThreadsafeChainedSink extends ChainedSink implements ThreadsafeSink {
ThreadsafeChainedSink(ThreadsafeSink target) {
super(target);
}
@Override
@SuppressWarnings("unchecked")
public ThreadsafeSink getTarget() {
return (ThreadsafeSink) super.getTarget();
}
}