Uses of Class
com.soklet.SseComment
Packages that use SseComment
-
Uses of SseComment in com.soklet
Methods in com.soklet that return SseCommentModifier and TypeMethodDescriptionstatic @NonNull SseCommentSseComment.fromComment(@NonNull String comment) Acquires aSseCommentinstance with acommentpayload.static @NonNull SseCommentSseComment.heartbeatInstance()Acquires a shared heartbeat comment instance.Methods in com.soklet with parameters of type SseCommentModifier and TypeMethodDescriptionvoidSseBroadcaster.broadcastComment(@NonNull SseComment sseComment) Broadcasts a single Server-Sent Event comment to all clients listening to this broadcaster'sResourcePath.default voidMetricsCollector.didDropSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment, @NonNull MetricsCollector.SseEventDropReason reason, @Nullable Integer payloadBytes, @Nullable Integer queueDepth) Called after an SSE comment is dropped before it can be enqueued for delivery.default voidLifecycleObserver.didFailToWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment, @NonNull Duration writeDuration, @NonNull Throwable throwable) Called after an SSE comment fails to write.default voidMetricsCollector.didFailToWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment, @NonNull Duration writeDuration, @NonNull Throwable throwable, @Nullable Duration deliveryLag, @Nullable Integer payloadBytes, @Nullable Integer queueDepth) Called after an SSE comment fails to write.default voidLifecycleObserver.didWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment, @NonNull Duration writeDuration) Called after an SSE comment is written.default voidMetricsCollector.didWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment, @NonNull Duration writeDuration, @Nullable Duration deliveryLag, @Nullable Integer payloadBytes, @Nullable Integer queueDepth) Called after an SSE comment is written.voidSseUnicaster.unicastComment(@NonNull SseComment sseComment) Unicasts a single Server-Sent Event comment to a specific client listening to this unicaster'sResourcePath.default voidLifecycleObserver.willWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment) Called before an SSE comment is written.default voidMetricsCollector.willWriteSseComment(@NonNull SseConnection sseConnection, @NonNull SseComment sseComment) Called before an SSE comment is written.Method parameters in com.soklet with type arguments of type SseCommentModifier and TypeMethodDescriptionvoidSseRequestResult.HandshakeAccepted.registerCommentConsumer(@NonNull Consumer<SseComment> commentConsumer) Registers a Server-Sent comment "consumer" for this connection - similar to how a real client would listen for Server-Sent comment payloads.