Class ActivityStreamAtmosphereHandler

  • All Implemented Interfaces:
    org.atmosphere.cpr.AtmosphereHandler

    public class ActivityStreamAtmosphereHandler
    extends BaseAtmosphereHandler
    Atmosphere handler implementation specific of the activity stream service.
    Since:
    8.2.0
    Version:
    $Revision: 18969 $ $Date: 2016-05-24 15:14:42 -0300 (Tue, 24 May 2016) $
    • Constructor Detail

      • ActivityStreamAtmosphereHandler

        public ActivityStreamAtmosphereHandler()
        Creates a new ActivityStreamAtmosphereHandler. It is expected to be created a single instance by the atmosphere framework. This should not be called directly.
        Since:
        8.2.0
    • Method Detail

      • onRequest

        public void onRequest​(org.atmosphere.cpr.AtmosphereResource atmosphereResource)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • onStateChange

        public void onStateChange​(org.atmosphere.cpr.AtmosphereResourceEvent event)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • destroy

        public void destroy()
      • notify

        public static void notify​(ActivityDocument activityDocument)
        Sends a broadcast to all relevant atmosphere resources with an activity document.
        Parameters:
        activityDocument - the activity document.
        Since:
        8.2.0