Uses of Interface
org.apache.juneau.console.bus.BusSession
Packages that use BusSession
Package
Description
Server half of the console message bus.
Connects terminals to the Juneau server bus: the
term.input upstream handler, and the term.nudge:<id>
downstream nudges that tell a terminal card when new bytes are ready.-
Uses of BusSession in org.apache.juneau.console.bus
Methods in org.apache.juneau.console.bus that return BusSessionModifier and TypeMethodDescriptionServerBus.openSession(jakarta.servlet.http.HttpServletRequest req, JsonMap body) Transport SPI: opens a session from a session POST body.Methods in org.apache.juneau.console.bus that return types with arguments of type BusSessionModifier and TypeMethodDescriptionTransport SPI: finds a live session by its capability id, for the principal that opened it.ServerBus.sessions()The live sessions (connected, or disconnected within their grace period).Methods in org.apache.juneau.console.bus with parameters of type BusSessionModifier and TypeMethodDescriptionvoidServerBus.connect(BusSession session, FrameSink sink) Transport SPI: attaches a connection to a session, then sends the resync.voidServerBus.disconnect(BusSession session, FrameSink sink) Transport SPI: the connection behind a sink has closed.voidUpstreamHandler.handle(BusSession session, String topic, JsonMap payload) Handles one upstream publish.voidServerBus.receive(BusSession session, String frameText) Transport SPI: one upstream frame from a WebSocket connection.Method parameters in org.apache.juneau.console.bus with type arguments of type BusSessionModifier and TypeMethodDescriptionintServerBus.publishTo(Predicate<BusSession> audience, String topic, Object payload) Publishes a value to the connected sessions that match an audience. -
Uses of BusSession in org.apache.juneau.terminal.bus
Methods in org.apache.juneau.terminal.bus with parameters of type BusSessionModifier and TypeMethodDescriptionvoidTerminalInput.handle(BusSession session, String topic, JsonMap payload) Handles oneterm.inputframe.