Interface PushSendListener
- All Known Implementing Classes:
PushSessionTracker
public interface PushSendListener
Component notified when a UIDL message is sent to the client via PUSH
mechanism.
The component is also notified when the PUSH connection is established in order to perform initialization tasks for the connected resource.
Implementation must be thread safe, since method invocation may originate in different threads.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonConnect(org.atmosphere.cpr.AtmosphereResource resource) Invoked when a new PUSH connection is established.voidonMessageSent(org.atmosphere.cpr.AtmosphereResource resource) Invoked whenever a UIDL message has been sent to the client.
-
Method Details
-
onConnect
default void onConnect(org.atmosphere.cpr.AtmosphereResource resource) Invoked when a new PUSH connection is established.- Parameters:
resource- theAtmosphereResourcebehind the PUSH connection.
-
onMessageSent
void onMessageSent(org.atmosphere.cpr.AtmosphereResource resource) Invoked whenever a UIDL message has been sent to the client.- Parameters:
resource- theAtmosphereResourceused to process the message
-