org.fiolino.common.processing.sink.NullSink 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 org.fiolino.common.container.Container;
/**
* A sink that does nothing.
*
* Created by kuli on 06.04.16.
*/
public final class NullSink implements ThreadsafeSink {
@Override
public void accept(T value, Container metadata) {
// Do nothing
}
@Override
public void commit(Container metadata) {
// Just ignore
}
}