| Package | Description |
|---|---|
| org.atmosphere.cache | |
| org.atmosphere.client | |
| org.atmosphere.cpr | |
| org.atmosphere.handler | |
| org.atmosphere.interceptor | |
| org.atmosphere.util | |
| org.atmosphere.websocket |
| Modifier and Type | Method and Description |
|---|---|
UUIDBroadcasterCache.CacheMessage |
UUIDBroadcasterCache.addCacheCandidate(java.lang.String broadcasterId,
AtmosphereResource r,
java.lang.Object e)
For backward compatibility with 1.0.9 and lower, use the method above.
|
void |
UUIDBroadcasterCache.addToCache(java.lang.String broadcasterId,
AtmosphereResource r,
java.lang.Object e) |
void |
OnReconnectBroadcasterCache.addToCache(java.lang.String id,
AtmosphereResource r,
java.lang.Object e) |
void |
BroadcasterCacheBase.addToCache(java.lang.String id,
AtmosphereResource resource,
java.lang.Object object)
Deprecated.
Start tracking messages associated with
AtmosphereResource from the cache |
void |
AbstractBroadcasterCache.addToCache(java.lang.String id,
AtmosphereResource resource,
java.lang.Object object)
Start tracking messages associated with
AtmosphereResource from the cache |
abstract void |
BroadcasterCacheBase.cache(AtmosphereResource r,
BroadcasterCacheBase.CachedMessage cm)
Deprecated.
Cache the last message broadcasted.
|
void |
SessionBroadcasterCache.cache(java.lang.String id,
AtmosphereResource r,
AbstractBroadcasterCache.CachedMessage cm)
Cache the last message broadcasted.
|
void |
HeaderBroadcasterCache.cache(java.lang.String id,
AtmosphereResource ar,
AbstractBroadcasterCache.CachedMessage cm)
Cache the last message broadcasted.
|
abstract void |
AbstractBroadcasterCache.cache(java.lang.String id,
AtmosphereResource r,
AbstractBroadcasterCache.CachedMessage cm)
Cache the last message broadcasted.
|
java.util.List<java.lang.Object> |
UUIDBroadcasterCache.retrieveFromCache(java.lang.String broadcasterId,
AtmosphereResource r) |
java.util.List<java.lang.Object> |
OnReconnectBroadcasterCache.retrieveFromCache(java.lang.String id,
AtmosphereResource r) |
java.util.List<java.lang.Object> |
BroadcasterCacheBase.retrieveFromCache(java.lang.String id,
AtmosphereResource r)
Deprecated.
Retrieve messages associated with
AtmosphereResource |
java.util.List<java.lang.Object> |
AbstractBroadcasterCache.retrieveFromCache(java.lang.String id,
AtmosphereResource r)
Retrieve messages associated with
AtmosphereResource |
abstract BroadcasterCacheBase.CachedMessage |
BroadcasterCacheBase.retrieveLastMessage(AtmosphereResource r)
Deprecated.
Return the last message broadcasted to the
AtmosphereResource. |
AbstractBroadcasterCache.CachedMessage |
SessionBroadcasterCache.retrieveLastMessage(java.lang.String id,
AtmosphereResource r)
Return the last message broadcasted to the
AtmosphereResource. |
AbstractBroadcasterCache.CachedMessage |
HeaderBroadcasterCache.retrieveLastMessage(java.lang.String id,
AtmosphereResource ar)
Return the last message broadcasted to the
AtmosphereResource. |
abstract AbstractBroadcasterCache.CachedMessage |
AbstractBroadcasterCache.retrieveLastMessage(java.lang.String id,
AtmosphereResource r)
Return the last message broadcasted to the
AtmosphereResource. |
| Modifier and Type | Method and Description |
|---|---|
BroadcastFilter.BroadcastAction |
TrackMessageSizeFilter.filter(AtmosphereResource r,
java.lang.Object originalMessage,
java.lang.Object message) |
BroadcastFilter.BroadcastAction |
JSONPTransportFilter.filter(AtmosphereResource r,
java.lang.Object message,
java.lang.Object originalMessage)
Deprecated.
|
Action |
TrackMessageSizeInterceptor.inspect(AtmosphereResource r) |
Action |
MessageLengthInterceptor.inspect(AtmosphereResource r) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AsyncSupport<E extends AtmosphereResource>
Atmosphere's supported WebServer must implement this interface in order
to be auto detected by the
AtmosphereFramework. |
| Modifier and Type | Class and Description |
|---|---|
class |
AtmosphereResourceImpl
|
| Modifier and Type | Field and Description |
|---|---|
protected AtmosphereResource |
DefaultBroadcaster.noOpsResource |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ConcurrentHashMap<AtmosphereRequest,AtmosphereResource> |
AsynchronousProcessor.aliveRequests |
protected static java.util.concurrent.ConcurrentHashMap<AtmosphereResource,Meteor> |
Meteor.cache |
protected java.util.concurrent.ConcurrentLinkedQueue<AtmosphereResource> |
DefaultBroadcaster.resources |
| Modifier and Type | Method and Description |
|---|---|
AtmosphereResource |
AtmosphereResourceImpl.addEventListener(AtmosphereResourceEventListener e)
|
AtmosphereResource |
AtmosphereResource.addEventListener(AtmosphereResourceEventListener e)
|
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a)
Create an
AtmosphereResourceImpl |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
AtmosphereResponse response,
AsyncSupport<?> a)
Create an
AtmosphereResourceImpl |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an
AtmosphereResourceImpl |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an
AtmosphereResourceImpl |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
java.lang.String uuid)
Create an
AtmosphereResource associated with the uuid. |
AtmosphereResource |
AtmosphereResourceFactory.find(java.lang.String uuid)
Find an
AtmosphereResource based on its uuid() |
AtmosphereResource |
Meteor.getAtmosphereResource()
Return the underlying
AtmosphereResource |
AtmosphereResource |
AtmosphereResourceEventImpl.getResource()
Return the
AtmosphereResource associated with this event |
AtmosphereResource |
AtmosphereResourceEvent.getResource()
Return the
AtmosphereResource associated with this event |
AtmosphereResource |
AtmosphereResourceImpl.notifyListeners()
Notify All
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResource.notifyListeners()
Notify All
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResourceImpl.notifyListeners(AtmosphereResourceEvent event)
Notify
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResource.notifyListeners(AtmosphereResourceEvent e)
Notify
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResourceImpl.padding(java.lang.String padding)
Set the padding to use when flushing the response when transport equals 'streaming' See
ApplicationConfig.STREAMING_PADDING_MODE
for more info. |
AtmosphereResource |
AtmosphereResource.padding(java.lang.String padding)
Set the padding to use when flushing the response when transport equals 'streaming' See
ApplicationConfig.STREAMING_PADDING_MODE
for more info. |
AtmosphereResource |
AtmosphereResourceFactory.remove(java.lang.String uuid)
Remove the
AtmosphereResource from all instance of Broadcaster |
AtmosphereResource |
AtmosphereResourceImpl.removeEventListener(AtmosphereResourceEventListener e)
Remove a
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResource.removeEventListener(AtmosphereResourceEventListener e)
Remove a
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResourceImpl.removeEventListeners()
Remove all
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResource.removeEventListeners()
Remove all
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResponse.resource()
The
AtmosphereResource associated with this request. |
AtmosphereResource |
AtmosphereRequest.resource()
The
AtmosphereResource associated with this request. |
AtmosphereResource |
AtmosphereResourceImpl.resume()
Complete the
AtmosphereResponse and finish/commit it. |
AtmosphereResource |
AtmosphereResource.resume()
Complete the
AtmosphereResponse and finish/commit it. |
AtmosphereResource |
AtmosphereResourceImpl.resumeOnBroadcast(boolean resumeOnBroadcast)
Set to true to resume the response once after the first broadcast.
|
AtmosphereResource |
AtmosphereResource.resumeOnBroadcast(boolean resumeOnBroadcast)
Set to true to resume the response once after the first broadcast.
|
AtmosphereResource |
AtmosphereResource.setBroadcaster(Broadcaster broadcaster)
Set the current
Broadcaster. |
AtmosphereResource |
AtmosphereResourceImpl.setSerializer(Serializer s)
Set the
Serializer used to write broadcasted object. |
AtmosphereResource |
AtmosphereResource.setSerializer(Serializer s)
Set the
Serializer to use when write(java.io.OutputStream, java.lang.Object)
execute the operation. |
AtmosphereResource |
AtmosphereResourceImpl.suspend()
Suspend the
AtmosphereResponse indefinitely. |
AtmosphereResource |
AtmosphereResource.suspend()
Suspend the
AtmosphereResponse indefinitely. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResource.suspend(long timeout)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout,
boolean flushComment) |
AtmosphereResource |
AtmosphereResource.suspend(long timeout,
boolean flushComment)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResource.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit,
boolean flushComment)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResource.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit,
boolean flushComment)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResourceImpl.write(java.io.OutputStream os,
java.lang.Object o)
Write the broadcasted object using the
OutputStream. |
AtmosphereResource |
AtmosphereResource.write(java.io.OutputStream os,
java.lang.Object o)
|
AtmosphereResource |
AtmosphereResourceImpl.writeOnTimeout(java.lang.Object o)
Set a message that will be written when the resource times out.
|
AtmosphereResource |
AtmosphereResource.writeOnTimeout(java.lang.Object o)
Set a message that will be written when the resource times out.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<AtmosphereResource> |
DefaultBroadcaster.getAtmosphereResources()
Return an
List of AtmosphereResource. |
java.util.Collection<AtmosphereResource> |
Broadcaster.getAtmosphereResources()
Return an
List of AtmosphereResource. |
| Modifier and Type | Method and Description |
|---|---|
Broadcaster |
DefaultBroadcaster.addAtmosphereResource(AtmosphereResource r)
Add a
AtmosphereResource to the list of item to be notified when
the Broadcaster.broadcast(T) is invoked. |
Broadcaster |
Broadcaster.addAtmosphereResource(AtmosphereResource resource)
Add a
AtmosphereResource to the list of item to be notified when
the Broadcaster.broadcast(T) is invoked. |
void |
BroadcasterConfig.DefaultBroadcasterCache.addToCache(java.lang.String id,
AtmosphereResource r,
java.lang.Object o) |
void |
BroadcasterCache.addToCache(java.lang.String id,
AtmosphereResource r,
java.lang.Object e)
Start tracking messages associated with
AtmosphereResource from the cache |
protected void |
DefaultBroadcaster.afterFilterCacheEntry(AtmosphereResource r,
java.lang.Object finalMsg,
UUIDBroadcasterCache.CacheMessage cacheMessage) |
<T> java.util.concurrent.Future<T> |
DefaultBroadcaster.broadcast(T msg,
AtmosphereResource r)
Broadcast the
Object to all suspended response, e.g. |
<T> java.util.concurrent.Future<T> |
Broadcaster.broadcast(T o,
AtmosphereResource resource)
Broadcast the
Object to all suspended response, e.g. |
protected void |
DefaultBroadcaster.broadcastOnResume(AtmosphereResource r) |
protected void |
DefaultBroadcaster.cacheAndSuspend(AtmosphereResource r)
Look in the cache to see of there are messages available, and takes the appropriate actions.
|
void |
DefaultBroadcaster.cacheLostMessage(AtmosphereResource r)
Cache the message because an unexpected exception occurred.
|
void |
DefaultBroadcaster.cacheLostMessage(AtmosphereResource r,
boolean force)
Cache the message because an unexpected exception occurred.
|
void |
DefaultBroadcaster.cacheLostMessage(AtmosphereResource r,
DefaultBroadcaster.AsyncWriteToken token)
Cache the message because an unexpected exception occurred.
|
void |
DefaultBroadcaster.cacheLostMessage(AtmosphereResource r,
DefaultBroadcaster.AsyncWriteToken token,
boolean force)
Cache the message because an unexpected exception occurred.
|
protected boolean |
DefaultBroadcaster.checkCachedAndPush(AtmosphereResource r,
AtmosphereResourceEvent e)
Return false if no cached messages has been found, true if cached.
|
AtmosphereResourceImpl |
AtmosphereResourceImpl.cloneState(AtmosphereResource r) |
protected boolean |
AsynchronousProcessor.completeLifecycle(AtmosphereResource r,
boolean cancelled)
Cancel or times out an
AtmosphereResource by invoking it's associated AtmosphereHandler.onStateChange(AtmosphereResourceEvent) |
BroadcastFilter.BroadcastAction |
PerRequestBroadcastFilter.filter(AtmosphereResource r,
java.lang.Object originalMessage,
java.lang.Object message)
Transform or Filter a message per
AtmosphereResource. |
protected BroadcastFilter.BroadcastAction |
BroadcasterConfig.filter(AtmosphereResource r,
java.lang.Object message,
java.lang.Object originalMessage)
Invoke
BroadcastFilter in the other they were added, with a unique AtmosphereRequest |
Action |
AtmosphereInterceptorAdapter.inspect(AtmosphereResource r) |
Action |
AtmosphereInterceptor.inspect(AtmosphereResource r)
Invoked before an
AtmosphereResource gets dispatched to AtmosphereHandler |
protected void |
DefaultBroadcaster.invokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
void |
DefaultBroadcaster.onException(java.lang.Throwable t,
AtmosphereResource ar) |
void |
DefaultBroadcaster.onException(java.lang.Throwable t,
AtmosphereResource ar,
boolean notifyAndCache) |
void |
AtmosphereHandler.onRequest(AtmosphereResource resource)
When a client send a request to its associated
AtmosphereHandler, it can decide
if the underlying connection can be suspended (creating a Continuation)
or handle the connection synchronously. |
protected java.lang.Object |
DefaultBroadcaster.perRequestFilter(AtmosphereResource r,
DefaultBroadcaster.Entry msg,
boolean cache) |
void |
AtmosphereInterceptorAdapter.postInspect(AtmosphereResource r) |
void |
AtmosphereInterceptor.postInspect(AtmosphereResource r)
Invoked after an
AtmosphereResource gets dispatched to AtmosphereHandler |
protected void |
DefaultBroadcaster.prepareInvokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
DefaultBroadcaster.queueWriteIO(AtmosphereResource r,
java.lang.Object finalMsg,
DefaultBroadcaster.Entry entry) |
void |
DefaultBroadcasterFactory.removeAllAtmosphereResource(AtmosphereResource r)
Remove all instance of
AtmosphereResource from all registered Broadcaster |
abstract void |
BroadcasterFactory.removeAllAtmosphereResource(AtmosphereResource r)
Remove all instance of
AtmosphereResource from all registered Broadcaster |
Broadcaster |
DefaultBroadcaster.removeAtmosphereResource(AtmosphereResource r)
Remove a
AtmosphereResource from the list of item to be notified when
the Broadcaster.broadcast(T) is invoked. |
Broadcaster |
Broadcaster.removeAtmosphereResource(AtmosphereResource resource)
Remove a
AtmosphereResource from the list of item to be notified when
the Broadcaster.broadcast(T) is invoked. |
protected Broadcaster |
DefaultBroadcaster.removeAtmosphereResource(AtmosphereResource r,
boolean executeDone) |
java.util.List<java.lang.Object> |
BroadcasterConfig.DefaultBroadcasterCache.retrieveFromCache(java.lang.String id,
AtmosphereResource r) |
java.util.List<java.lang.Object> |
BroadcasterCache.retrieveFromCache(java.lang.String id,
AtmosphereResource r)
Retrieve messages associated with
AtmosphereResource |
protected boolean |
DefaultBroadcaster.retrieveTrackedBroadcast(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
DefaultBroadcaster.trackBroadcastMessage(AtmosphereResource r,
java.lang.Object msg) |
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.Future<T> |
DefaultBroadcaster.broadcast(T msg,
java.util.Set<AtmosphereResource> subset)
Broadcast the
Object to all suspended response, e.g. |
<T> java.util.concurrent.Future<T> |
Broadcaster.broadcast(T o,
java.util.Set<AtmosphereResource> subset)
Broadcast the
Object to all suspended response, e.g. |
| Constructor and Description |
|---|
DefaultBroadcaster.AsyncWriteToken(AtmosphereResource resource,
java.lang.Object msg,
BroadcasterFuture future,
java.lang.Object originalMessage) |
DefaultBroadcaster.AsyncWriteToken(AtmosphereResource resource,
java.lang.Object msg,
BroadcasterFuture future,
java.lang.Object originalMessage,
UUIDBroadcasterCache.CacheMessage cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleWebSocketAtmosphereHandler.onRequest(AtmosphereResource r)
This method redirect the request to the server main page (index.html, index.jsp, etc.) and then execute the
SimpleWebSocketAtmosphereHandler.upgrade(AtmosphereResource). |
void |
ReflectorServletProcessor.onRequest(AtmosphereResource r)
Delegate the request to the Servlet.service method, and add the
AtmosphereResource
to the HttpServletRequest#setAttribute(java.lang.String, java.lang.Object)). |
void |
OnMessage.onRequest(AtmosphereResource resource) |
void |
SimpleWebSocketAtmosphereHandler.upgrade(AtmosphereResource resource)
WebSocket upgrade.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
SSEAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
SessionCreationInterceptor.inspect(AtmosphereResource r) |
Action |
OnDisconnectInterceptor.inspect(AtmosphereResource r) |
Action |
NginxInterceptor.inspect(AtmosphereResource r) |
Action |
LongPollingOnOpenInterceptor.inspect(AtmosphereResource r) |
Action |
JSONPAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
JavaScriptProtocol.inspect(AtmosphereResource r) |
Action |
BroadcastOnPostAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
AtmosphereResourceLifecycleInterceptor.inspect(AtmosphereResource r)
Automatically suspend the
AtmosphereResource based on AtmosphereResource.TRANSPORT value. |
Action |
AndroidAtmosphereInterceptor.inspect(AtmosphereResource r) |
void |
SessionCreationInterceptor.postInspect(AtmosphereResource r) |
void |
OnDisconnectInterceptor.postInspect(AtmosphereResource r) |
void |
NginxInterceptor.postInspect(AtmosphereResource r) |
void |
JavaScriptProtocol.postInspect(AtmosphereResource r) |
void |
BroadcastOnPostAtmosphereInterceptor.postInspect(AtmosphereResource r) |
void |
AtmosphereResourceLifecycleInterceptor.postInspect(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.Future<T> |
SimpleBroadcaster.broadcast(T msg,
AtmosphereResource r)
Broadcast the
Object to all suspended response, e.g. |
<T> java.util.concurrent.Future<T> |
ExcludeSessionBroadcaster.broadcast(T msg,
AtmosphereResource r)
the AtmosphereResource r will be exclude for this broadcast
|
<T> java.util.concurrent.Future<T> |
AbstractBroadcasterProxy.broadcast(T msg,
AtmosphereResource r)
Broadcast the
Object to all suspended response, e.g. |
protected void |
AbstractBroadcasterProxy.invokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
SimpleBroadcaster.prepareInvokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
SimpleBroadcaster.queueWriteIO(AtmosphereResource r,
java.lang.Object finalMsg,
DefaultBroadcaster.Entry entry) |
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.Future<T> |
SimpleBroadcaster.broadcast(T msg,
java.util.Set<AtmosphereResource> subset)
Broadcast the
Object to all suspended response, e.g. |
<T> java.util.concurrent.Future<T> |
ExcludeSessionBroadcaster.broadcast(T msg,
java.util.Set<AtmosphereResource> subset)
the AtmosphereResources subset will be exclude for this broadcast
|
<T> java.util.concurrent.Future<T> |
AbstractBroadcasterProxy.broadcast(T msg,
java.util.Set<AtmosphereResource> subset)
Broadcast the
Object to all suspended response, e.g. |
| Modifier and Type | Method and Description |
|---|---|
AtmosphereResource |
WebSocket.resource()
Return the an
AtmosphereResource used by this WebSocket, or null if the WebSocket has been closed
before the WebSocket message has been processed. |
| Modifier and Type | Method and Description |
|---|---|
WebSocket |
WebSocket.resource(AtmosphereResource r)
Associate an
AtmosphereResource to this WebSocket |
Copyright © 2018. All Rights Reserved.