Class NettySseConnection
java.lang.Object
dev.tachyonmcp.core.transport.netty.sse.NettySseConnection
- All Implemented Interfaces:
SseConnection
SseConnection backed by a Netty Channel. Writes SSE frames
as chunked HTTP content and registers a close listener for cleanup.-
Constructor Summary
ConstructorsConstructorDescriptionNettySseConnection(io.netty.channel.Channel channel, Runnable onCloseAction) -
Method Summary
-
Constructor Details
-
NettySseConnection
-
-
Method Details
-
channel
public io.netty.channel.Channel channel() -
isWritable
public boolean isWritable()Description copied from interface:SseConnectionReturnstrueif the underlying channel is writable.- Specified by:
isWritablein interfaceSseConnection
-
send
Description copied from interface:SseConnectionSends an SSE event to the client.- Specified by:
sendin interfaceSseConnection
-
close
public void close()Description copied from interface:SseConnectionCloses the connection. Idempotent.- Specified by:
closein interfaceSseConnection
-