1 parent e33bfb8 commit 3e6c685Copy full SHA for 3e6c685
1 file changed
src/main/java/io/github/easy4j/hermes/api/sse/EndpointEventDecoder.java
@@ -0,0 +1,7 @@
1
+package io.github.easy4j.hermes.api.sse;
2
+
3
+/** Decodes one preserved raw SSE frame into an endpoint-specific event view. */
4
+@FunctionalInterface
5
+public interface EndpointEventDecoder<T> {
6
+ T decode(SseFrame frame) throws Exception;
7
+}
0 commit comments