Package org.apache.juneau.console.bus
Interface UpstreamHandler
- All Known Implementing Classes:
TerminalInput
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles one upstream topic (page → server, WebSocket bridges only). Runs on the container's WebSocket thread;
keep it short or hand off. An exception is logged and answered with a generic
bus:upstream-failed frame.
Example:
UpstreamHandler
- Since:
- 10.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(BusSession session, String topic, JsonMap payload) Handles one upstream publish.
-
Method Details
-
handle
Handles one upstream publish.- Parameters:
session- The session that sent it. Nevernull .topic- The topic, already checked against the session's upstream grant.payload- The JSON-object payload. Nevernull .- Throws:
Exception- Any failure; it is logged and never crosses the wire.
-