Package lumis.service.activitystream
Class ActivityStreamAtmosphereHandler
- java.lang.Object
-
- lumis.portal.atmosphere.BaseAtmosphereHandler
-
- lumis.service.activitystream.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 Summary
Constructors Constructor Description ActivityStreamAtmosphereHandler()
Creates a new ActivityStreamAtmosphereHandler.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
protected java.lang.String
getBroadcasterId()
Returns the broadcaster identifier.static void
notify(ActivityDocument activityDocument)
Sends a broadcast to all relevant atmosphere resources with an activity document.void
onRequest(org.atmosphere.cpr.AtmosphereResource atmosphereResource)
void
onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent event)
-
Methods inherited from class lumis.portal.atmosphere.BaseAtmosphereHandler
getBroadcaster, getSessionConfig, isBroadcast
-
-
-
-
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
-
getBroadcasterId
protected java.lang.String getBroadcasterId()
Description copied from class:BaseAtmosphereHandler
Returns the broadcaster identifier.- Specified by:
getBroadcasterId
in classBaseAtmosphereHandler
- Returns:
- the broadcaster identifier.
-
-