Package org.atmosphere.config.service
Annotation Interface ManagedService
A Meta annotation that configure Atmosphere with
- The
UUIDBroadcasterCachefor caching message. - The
AtmosphereResourceLifecycleInterceptorfor managing the connection lifecycle - The
TrackMessageSizeInterceptorfor making sure messages are delivered entirely
AtmosphereHandler is the same as doing:
- Author:
- Jeanfrancois Arcand
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Atmosphere's configuration that will be passed to the associatedAtmosphereHandler.Class<? extends Broadcaster> TheBroadcasterclass nameClass<? extends BroadcasterCache> TheBroadcasterCacheclass nameClass<? extends BroadcastFilter>[]A list ofBroadcastFilterClass<? extends AtmosphereInterceptor>[]A list ofAtmosphereInterceptorto install.Class<? extends AtmosphereResourceEventListener>[]AddAtmosphereResourceEventListenerto track internal events.The mapping path or context-root used to map this AtmosphereHandler
-
Element Details
-
path
String pathThe mapping path or context-root used to map this AtmosphereHandler- Returns:
- mapping path or context-root used to map this AtmosphereHandler
- Default:
"/"
-
listeners
Class<? extends AtmosphereResourceEventListener>[] listenersAddAtmosphereResourceEventListenerto track internal events.- Default:
{}
-
broadcaster
Class<? extends Broadcaster> broadcasterTheBroadcasterclass name- Returns:
- The
Broadcasterclass name
- Default:
org.atmosphere.cpr.DefaultBroadcaster.class
-
interceptors
Class<? extends AtmosphereInterceptor>[] interceptorsA list ofAtmosphereInterceptorto install. Defined interceptor will be appended to the default set:AtmosphereResourceLifecycleInterceptor,ManagedServiceInterceptor,TrackMessageSizeInterceptor,HeartbeatInterceptorandSuspendTrackerInterceptor- Default:
{}
-
atmosphereConfig
String[] atmosphereConfigAtmosphere's configuration that will be passed to the associatedAtmosphereHandler. Configuration name and value is delimited by "=", and different configuration lines are separated by comma.- Default:
{}
-
broadcasterCache
Class<? extends BroadcasterCache> broadcasterCacheTheBroadcasterCacheclass name Default isUUIDBroadcasterCache.- Returns:
- The
Broadcasterclass name.
- Default:
org.atmosphere.cache.UUIDBroadcasterCache.class
-
broadcastFilters
Class<? extends BroadcastFilter>[] broadcastFiltersA list ofBroadcastFilter- Default:
{}
-