Uses of Class
com.soklet.ServerSentEventComment
Packages that use ServerSentEventComment
-
Uses of ServerSentEventComment in com.soklet
Methods in com.soklet that return ServerSentEventCommentModifier and TypeMethodDescriptionstatic @NonNull ServerSentEventCommentServerSentEventComment.fromComment(@NonNull String comment) Acquires aServerSentEventCommentinstance with acommentpayload.static @NonNull ServerSentEventCommentServerSentEventComment.heartbeatInstance()Acquires a shared heartbeat comment instance.Methods in com.soklet with parameters of type ServerSentEventCommentModifier and TypeMethodDescriptionvoidServerSentEventBroadcaster.broadcastComment(@NonNull ServerSentEventComment serverSentEventComment) Broadcasts a single Server-Sent Event comment to all clients listening to this broadcaster'sResourcePath.default voidMetricsCollector.didDropServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment, @NonNull MetricsCollector.ServerSentEventDropReason reason, @Nullable Integer payloadBytes, @Nullable Integer queueDepth) Called after an SSE comment is dropped before it can be enqueued for delivery.default voidLifecycleObserver.didFailToWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment, @NonNull Duration writeDuration, @NonNull Throwable throwable) Called after an SSE comment fails to write.default voidMetricsCollector.didFailToWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment, @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.didWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment, @NonNull Duration writeDuration) Called after an SSE comment is written.default voidMetricsCollector.didWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment, @NonNull Duration writeDuration, @Nullable Duration deliveryLag, @Nullable Integer payloadBytes, @Nullable Integer queueDepth) Called after an SSE comment is written.voidServerSentEventUnicaster.unicastComment(@NonNull ServerSentEventComment serverSentEventComment) Unicasts a single Server-Sent Event comment to a specific client listening to this unicaster'sResourcePath.default voidLifecycleObserver.willWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment) Called before an SSE comment is written.default voidMetricsCollector.willWriteServerSentEventComment(@NonNull ServerSentEventConnection serverSentEventConnection, @NonNull ServerSentEventComment serverSentEventComment) Called before an SSE comment is written.Method parameters in com.soklet with type arguments of type ServerSentEventCommentModifier and TypeMethodDescriptionvoidServerSentEventRequestResult.HandshakeAccepted.registerCommentConsumer(@NonNull Consumer<ServerSentEventComment> commentConsumer) Registers a Server-Sent comment "consumer" for this connection - similar to how a real client would listen for Server-Sent comment payloads.