|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface ManagedService
A Meta annotation that configure Atmosphere with
UUIDBroadcasterCachefor caching message. AtmosphereResourceLifecycleInterceptor for managing the connection lifecycleBroadcastOnPostAtmosphereInterceptor for pushing messages to suspended connectionTrackMessageSizeInterceptor for making sure messages are delivered entirelyHeartbeatInterceptor for keeping the connection activeOnDisconnectInterceptor for detecting when the connection get closed by the browserJavaScriptProtocol to enable the Atmosphere protocol between the client and AtmosphereAtmosphereHandler is the same as doing:
- Author:
- Jeanfrancois Arcand
Optional Element Summary Class<? extends Broadcaster>broadcaster
TheBroadcasterclass nameClass<? extends BroadcasterCache>broadcasterCache
TheBroadcasterCacheclass nameClass<? extends AtmosphereInterceptor>[]interceptors
A list ofAtmosphereInterceptorto install.Class<? extends AtmosphereResourceEventListener>[]listeners
AddAtmosphereResourceEventListenerto track internal events.Stringpath
The mapping path, or context-root used to map this AtmosphereHandlerpath
public abstract String path
- The mapping path, or context-root used to map this AtmosphereHandler
- Returns:
- mapping path, or context-root used to map this AtmosphereHandler
- Default:
- "/"
listeners
public abstract Class<? extends AtmosphereResourceEventListener>[] listeners
- Add
AtmosphereResourceEventListenerto track internal events.
- Default:
- {}
broadcaster
public abstract Class<? extends Broadcaster> broadcaster
- The
Broadcasterclass name
- Returns:
- The
Broadcasterclass name
- Default:
- org.atmosphere.cpr.DefaultBroadcaster.class
interceptors
public abstract Class<? extends AtmosphereInterceptor>[] interceptors
- A list of
AtmosphereInterceptorto install. Default areAtmosphereResourceLifecycleInterceptor,BroadcastOnPostAtmosphereInterceptor,TrackMessageSizeInterceptor,HeartbeatInterceptorandSuspendTrackerInterceptor
- Default:
- {org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.class, org.atmosphere.interceptor.BroadcastOnPostAtmosphereInterceptor.class, org.atmosphere.client.TrackMessageSizeInterceptor.class, org.atmosphere.interceptor.HeartbeatInterceptor.class, org.atmosphere.interceptor.SuspendTrackerInterceptor.class}
broadcasterCache
public abstract Class<? extends BroadcasterCache> broadcasterCache
- The
BroadcasterCacheclass name
- Returns:
- The
Broadcasterclass name. Default isUUIDBroadcasterCache
- Default:
- org.atmosphere.cache.UUIDBroadcasterCache.class
Overview Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: REQUIRED | OPTIONAL DETAIL: ELEMENT
Copyright © 2013. All Rights Reserved.