Class MessageAckInterceptor

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.interceptor.MessageAckInterceptor
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class MessageAckInterceptor extends AtmosphereInterceptorAdapter
Interceptor that implements message acknowledgment for reliable delivery.

When a client sends a message with an X-Atmosphere-Message-Id header or query parameter, the server echoes back an X-Atmosphere-Ack header with the same ID to confirm receipt. If no ID is provided, the server generates one and attaches it as a request attribute for downstream handlers.

This interceptor works together with the client-side offline queue and optimistic update system to provide reliable, at-least-once delivery.

Since:
4.0.8