Skip to content

Instantly share code, notes, and snippets.

@matzew
Created January 18, 2019 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/6e4380a56540b2915bbf7a50649aad04 to your computer and use it in GitHub Desktop.
Save matzew/6e4380a56540b2915bbf7a50649aad04 to your computer and use it in GitHub Desktop.
package io.my.streams;
import java.util.function.Function;
@In("from-kafka")
@Out("to-http")
public class SimpleProcessor implements Function<String, String> {
@Override
public String apply(final String payload) {
// do something...
return "result";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment