| Modifier and Type | Method and Description |
|---|---|
BroadcasterCache |
AbstractBroadcasterCache.excludeFromCache(java.lang.String broadcasterId,
AtmosphereResource r) |
BroadcasterCache |
DefaultBroadcasterCache.excludeFromCache(java.lang.String broadcasterId,
AtmosphereResource r) |
BroadcasterCache |
UUIDBroadcasterCache.excludeFromCache(java.lang.String broadcasterId,
AtmosphereResource r) |
protected java.lang.String |
UUIDBroadcasterCache.uuid(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
BroadcastFilter.BroadcastAction |
TrackMessageSizeFilter.filter(java.lang.String broadcasterId,
AtmosphereResource r,
java.lang.Object originalMessage,
java.lang.Object message) |
Action |
TrackMessageSizeInterceptor.inspect(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
Action |
ServiceInterceptor.inspect(AtmosphereResource r) |
protected ManagedServiceInterceptor.ManagedAnnotation |
ManagedServiceInterceptor.managed(AnnotatedProxy ap,
AtmosphereResource r) |
void |
ManagedAtmosphereHandler.onRequest(AtmosphereResource resource) |
void |
ManagedServiceInterceptor.postInspect(AtmosphereResource r) |
protected void |
ManagedAtmosphereHandler.processReady(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 |
Deliver.resource |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicReference<AtmosphereResource> |
AtmosphereSession.resource |
protected java.util.Set<AtmosphereResource> |
Deliver.resources |
protected java.util.concurrent.ConcurrentLinkedQueue<AtmosphereResource> |
DefaultBroadcaster.resources |
| Modifier and Type | Method and Description |
|---|---|
AtmosphereResource |
AtmosphereSession.acquire()
Retrieve the
AtmosphereResource associated with this session. |
AtmosphereResource |
AtmosphereResourceImpl.addBroadcaster(Broadcaster broadcaster) |
AtmosphereResource |
AtmosphereResource.addBroadcaster(Broadcaster broadcaster)
Add/Associate a
Broadcaster with this resource. |
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 |
DefaultAtmosphereResourceFactory.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 |
DefaultAtmosphereResourceFactory.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 |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an
AtmosphereResourceImpl. |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t)
Create an
AtmosphereResourceImpl. |
AtmosphereResource |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t)
Create an
AtmosphereResourceImpl. |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an
AtmosphereResourceImpl. |
AtmosphereResource |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an
AtmosphereResourceImpl. |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t) |
AtmosphereResource |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t) |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
java.lang.String uuid)
Create an
AtmosphereResource associated with the uuid. |
AtmosphereResource |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
java.lang.String uuid)
Create an
AtmosphereResource associated with the uuid. |
AtmosphereResource |
AtmosphereResourceFactory.create(AtmosphereConfig config,
java.lang.String uuid,
AtmosphereRequest request)
Create an
AtmosphereResource associated with the uuid. |
AtmosphereResource |
DefaultAtmosphereResourceFactory.create(AtmosphereConfig config,
java.lang.String uuid,
AtmosphereRequest request)
Create an
AtmosphereResource associated with the uuid. |
AtmosphereResource |
AtmosphereResourceFactory.find(java.lang.String uuid)
Find an
AtmosphereResource based on its uuid(). |
AtmosphereResource |
DefaultAtmosphereResourceFactory.find(java.lang.String uuid)
Find an
AtmosphereResource based on its uuid(). |
AtmosphereResource |
AtmosphereResourceImpl.forceBinaryWrite(boolean forceBinaryWrite) |
AtmosphereResource |
AtmosphereResource.forceBinaryWrite(boolean force)
Force binary write and never write String value.
|
AtmosphereResource |
Meteor.getAtmosphereResource()
Return the underlying
AtmosphereResource. |
AtmosphereResource |
AtmosphereResourceEvent.getResource()
Return the
AtmosphereResource associated with this event. |
AtmosphereResource |
Deliver.getResource() |
AtmosphereResource |
AtmosphereResourceEventImpl.getResource() |
AtmosphereResource |
AtmosphereResourceImpl.initialize(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest req,
AtmosphereResponse response,
AsyncSupport asyncSupport,
AtmosphereHandler atmosphereHandler)
Initialize an
AtmosphereResource. |
AtmosphereResource |
AtmosphereResource.initialize(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest req,
AtmosphereResponse response,
AsyncSupport asyncSupport,
AtmosphereHandler atmosphereHandler)
Initialize an
AtmosphereResource. |
AtmosphereResource |
AtmosphereResourceImpl.notifyListeners() |
AtmosphereResource |
AtmosphereResource.notifyListeners()
Notify all
AtmosphereResourceEventListeners. |
AtmosphereResource |
AtmosphereResourceImpl.notifyListeners(AtmosphereResourceEvent event) |
AtmosphereResource |
AtmosphereResource.notifyListeners(AtmosphereResourceEvent e)
Notify all
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResourceFactory.remove(java.lang.String uuid)
Remove the
AtmosphereResource from all instances of Broadcaster. |
AtmosphereResource |
DefaultAtmosphereResourceFactory.remove(java.lang.String uuid)
Remove the
AtmosphereResource from all instances of Broadcaster. |
AtmosphereResource |
AtmosphereResourceImpl.removeBroadcaster(Broadcaster broadcaster) |
AtmosphereResource |
AtmosphereResource.removeBroadcaster(Broadcaster broadcaster)
Remove a
Broadcaster with this resource. |
AtmosphereResource |
AtmosphereResourceImpl.removeEventListener(AtmosphereResourceEventListener e) |
AtmosphereResource |
AtmosphereResource.removeEventListener(AtmosphereResourceEventListener e)
Remove a
AtmosphereResourceEventListener. |
AtmosphereResource |
AtmosphereResourceImpl.removeEventListeners() |
AtmosphereResource |
AtmosphereResource.removeEventListeners()
Remove all
AtmosphereResourceEventListeners. |
AtmosphereResource |
AtmosphereResourceImpl.removeFromAllBroadcasters() |
AtmosphereResource |
AtmosphereResource.removeFromAllBroadcasters()
Remove this
AtmosphereResource from all Broadcaster |
AtmosphereResource |
AtmosphereRequest.resource()
The
AtmosphereResource associated with this request. |
AtmosphereResource |
AtmosphereResponse.resource()
The
AtmosphereResource associated with this request. |
AtmosphereResource |
AtmosphereResponseImpl.resource() |
AtmosphereResource |
AtmosphereRequestImpl.resource() |
AtmosphereResource |
AtmosphereResourceImpl.resume() |
AtmosphereResource |
AtmosphereResource.resume()
Complete the
AtmosphereResponse and finish/commit it. |
AtmosphereResource |
AtmosphereResourceImpl.resumeOnBroadcast(boolean resumeOnBroadcast) |
AtmosphereResource |
AtmosphereResource.resumeOnBroadcast(boolean resumeOnBroadcast)
Set to true to resume the response after the first broadcast.
|
AtmosphereResource |
AtmosphereResourceImpl.setBroadcaster(Broadcaster broadcaster) |
AtmosphereResource |
AtmosphereResource.setBroadcaster(Broadcaster broadcaster)
Set the first
Broadcaster associated with this resource. |
AtmosphereResource |
AtmosphereResourceImpl.setSerializer(Serializer s)
Set the
Serializer used to write broadcasted objects. |
AtmosphereResource |
AtmosphereResource.setSerializer(Serializer s)
Set the
Serializer to use when write(java.lang.String) execute the operation. |
AtmosphereResource |
AtmosphereResourceImpl.suspend() |
AtmosphereResource |
AtmosphereResource.suspend()
Suspend the
AtmosphereResponse indefinitely. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout) |
AtmosphereResource |
AtmosphereResource.suspend(long timeout)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereResourceImpl.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit) |
AtmosphereResource |
AtmosphereResource.suspend(long timeout,
java.util.concurrent.TimeUnit timeunit)
Suspend the
AtmosphereResponse. |
AtmosphereResource |
AtmosphereSession.tryAcquire()
Retrieve the
AtmosphereResource associated with this session. |
AtmosphereResource |
AtmosphereSession.tryAcquire(int timeInSecond)
Retrieve the
AtmosphereResource associated with this session. |
protected AtmosphereResource |
AtmosphereResourceImpl.uniqueBroadcaster(Broadcaster newB) |
AtmosphereResource |
AtmosphereResourceImpl.write(byte[] o) |
AtmosphereResource |
AtmosphereResource.write(byte[] s)
Write the bytes If
resumeOnBroadcast() is true, the underlying connection will be resumed (@link #resume()); |
AtmosphereResource |
AtmosphereResourceImpl.write(java.lang.String s) |
AtmosphereResource |
AtmosphereResource.write(java.lang.String s)
Write the String.
|
AtmosphereResource |
AtmosphereResourceImpl.writeOnTimeout(java.lang.Object o) |
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> |
AtmosphereResourceFactory.findAll() |
java.util.Collection<AtmosphereResource> |
DefaultAtmosphereResourceFactory.findAll() |
java.util.Collection<AtmosphereResource> |
Broadcaster.getAtmosphereResources()
Return an
List of AtmosphereResource. |
java.util.Collection<AtmosphereResource> |
DefaultBroadcaster.getAtmosphereResources() |
java.util.Set<AtmosphereResource> |
Deliver.getResources() |
java.util.concurrent.ConcurrentMap<java.lang.String,AtmosphereResource> |
AtmosphereResourceFactory.resources() |
java.util.concurrent.ConcurrentMap<java.lang.String,AtmosphereResource> |
DefaultAtmosphereResourceFactory.resources() |
| Modifier and Type | Method and Description |
|---|---|
Broadcaster |
Broadcaster.addAtmosphereResource(AtmosphereResource resource)
Add a
AtmosphereResource to the list of items to be notified when
the Broadcaster.broadcast(java.lang.Object) is invoked. |
Broadcaster |
DefaultBroadcaster.addAtmosphereResource(AtmosphereResource r) |
java.util.List<java.lang.Object> |
BroadcasterConfig.applyFilters(AtmosphereResource r,
java.util.List<java.lang.Object> cacheMessages)
Apply all filters to the
AtmosphereResource and the provided List of messages. |
void |
AtmosphereResourceFactory.Async.available(AtmosphereResource r)
A stub representing an
AtmosphereResource located somewhere in a cluster |
java.util.concurrent.Future<java.lang.Object> |
Broadcaster.broadcast(java.lang.Object o,
AtmosphereResource resource)
Broadcast the
Object to all suspended responses, eg. |
java.util.concurrent.Future<java.lang.Object> |
DefaultBroadcaster.broadcast(java.lang.Object msg,
AtmosphereResource r) |
protected void |
DefaultBroadcaster.broadcastOnResume(AtmosphereResource r) |
protected void |
DefaultBroadcaster.cacheAndSuspend(AtmosphereResource r)
Look in the cache to see if there are messages available, and take the appropriate actions.
|
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) |
AtmosphereResourceImpl |
AtmosphereResourceImpl.cloneState(AtmosphereResource r) |
boolean |
AsynchronousProcessor.completeLifecycle(AtmosphereResource r,
boolean cancelled)
Cancel or times out an
AtmosphereResource by invoking it's associated AtmosphereHandler.onStateChange(AtmosphereResourceEvent) |
protected boolean |
DefaultBroadcaster.endBroadcast(Deliver deliver,
AtmosphereResource r,
CacheMessage cacheMsg,
boolean deliverMessage) |
BroadcasterCache |
BroadcasterCache.excludeFromCache(java.lang.String broadcasterId,
AtmosphereResource r)
Allow an application to exclude, or block, an
AtmosphereResource to received cached message. |
protected void |
DefaultBroadcaster.executeBlockingWrite(AtmosphereResource r,
Deliver deliver,
java.util.concurrent.atomic.AtomicInteger count) |
protected BroadcastFilter.BroadcastAction |
BroadcasterConfig.filter(AtmosphereResource r,
java.lang.Object message,
java.lang.Object originalMessage)
Invoke
BroadcastFilters in the order they were added, with a unique AtmosphereRequest. |
BroadcastFilter.BroadcastAction |
PerRequestBroadcastFilter.filter(java.lang.String broadcasterId,
AtmosphereResource r,
java.lang.Object originalMessage,
java.lang.Object message)
Transform or filter a message per
AtmosphereResource. |
BroadcastFilter.BroadcastAction |
BroadcastFilterAdapter.filter(java.lang.String broadcasterId,
AtmosphereResource r,
java.lang.Object originalMessage,
java.lang.Object message) |
AtmosphereResourceSession |
AtmosphereResourceSessionFactory.getSession(AtmosphereResource resource)
Returns the current session associated with the
AtmosphereResource, or creates one if it does not yet exist. |
AtmosphereResourceSession |
DefaultAtmosphereResourceSessionFactory.getSession(AtmosphereResource resource) |
AtmosphereResourceSession |
AtmosphereResourceSessionFactory.getSession(AtmosphereResource resource,
boolean create)
Returns the current session associated with the
AtmosphereResource or, if there is no current session and create
is true, returns a new session. |
AtmosphereResourceSession |
DefaultAtmosphereResourceSessionFactory.getSession(AtmosphereResource r,
boolean create) |
Action |
AtmosphereInterceptor.inspect(AtmosphereResource r)
Invoked before an
AtmosphereResource gets dispatched to AtmosphereHandler. |
Action |
AtmosphereInterceptorAdapter.inspect(AtmosphereResource r) |
Action |
AsynchronousProcessor.invokeInterceptors(java.util.List<AtmosphereInterceptor> c,
AtmosphereResource r,
int tracing) |
protected void |
DefaultBroadcaster.invokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
DefaultBroadcaster.notifyAndAdd(AtmosphereResource r) |
protected void |
DefaultBroadcaster.notifyOnAddAtmosphereResourceListener(AtmosphereResource r) |
protected void |
DefaultBroadcaster.notifyOnRemoveAtmosphereResourceListener(AtmosphereResource r) |
void |
BroadcasterListener.onAddAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an
AtmosphereResource is getting associated to a Broadcaster. |
void |
BroadcasterListenerAdapter.onAddAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an
AtmosphereResource is getting associated to a Broadcaster. |
void |
DefaultBroadcaster.onException(java.lang.Throwable t,
AtmosphereResource ar) |
void |
DefaultBroadcaster.onException(java.lang.Throwable t,
AtmosphereResource ar,
boolean notifyAndCache) |
void |
BroadcasterListener.onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an
AtmosphereResource is getting removed to a Broadcaster. |
void |
BroadcasterListenerAdapter.onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an
AtmosphereResource is getting removed to a Broadcaster. |
void |
AtmosphereHandler.onRequest(AtmosphereResource resource)
When a client sends 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 boolean |
DefaultBroadcaster.perRequestFilter(AtmosphereResource r,
Deliver msg) |
void |
AtmosphereInterceptor.postInspect(AtmosphereResource r)
Invoked after an
AtmosphereResource gets dispatched to AtmosphereHandler. |
void |
AtmosphereInterceptorAdapter.postInspect(AtmosphereResource r) |
void |
AsynchronousProcessor.postInterceptors(java.util.List<AtmosphereInterceptor> c,
AtmosphereResource r) |
protected void |
DefaultBroadcaster.prepareInvokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
DefaultBroadcaster.queueWriteIO(AtmosphereResource r,
Deliver deliver,
java.util.concurrent.atomic.AtomicInteger count) |
void |
AtmosphereResourceFactory.registerUuidForFindCandidate(AtmosphereResource r)
Register an
AtmosphereResource for being a candidate to AtmosphereResourceFactory.find(String) operation. |
void |
DefaultAtmosphereResourceFactory.registerUuidForFindCandidate(AtmosphereResource r)
Register an
AtmosphereResource for being a candidate to DefaultAtmosphereResourceFactory.find(String) operation. |
void |
DefaultBroadcasterFactory.removeAllAtmosphereResource(AtmosphereResource r)
Deprecated.
|
void |
BroadcasterFactory.removeAllAtmosphereResource(AtmosphereResource r)
Deprecated.
|
Broadcaster |
Broadcaster.removeAtmosphereResource(AtmosphereResource resource)
Remove a
AtmosphereResource from the list of s to be notified when
the Broadcaster.broadcast(java.lang.Object) is invoked. |
Broadcaster |
DefaultBroadcaster.removeAtmosphereResource(AtmosphereResource r) |
protected Broadcaster |
DefaultBroadcaster.removeAtmosphereResource(AtmosphereResource r,
boolean executeDone) |
protected boolean |
DefaultBroadcaster.retrieveTrackedBroadcast(AtmosphereResource r,
AtmosphereResourceEvent e) |
void |
AtmosphereResourceFactory.unRegisterUuidForFindCandidate(AtmosphereResource r)
Un register an
AtmosphereResource for being a candidate to AtmosphereResourceFactory.find(String) operation. |
void |
DefaultAtmosphereResourceFactory.unRegisterUuidForFindCandidate(AtmosphereResource r)
Un register an
AtmosphereResource for being a candidate to DefaultAtmosphereResourceFactory.find(String) operation. |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<java.lang.Object> |
Broadcaster.broadcast(java.lang.Object o,
java.util.Set<AtmosphereResource> subset)
Broadcast the
Object to all suspended response, eg. |
java.util.concurrent.Future<java.lang.Object> |
DefaultBroadcaster.broadcast(java.lang.Object msg,
java.util.Set<AtmosphereResource> subset) |
| Constructor and Description |
|---|
AsyncWriteToken(AtmosphereResource resource,
java.lang.Object msg,
BroadcasterFuture future,
java.lang.Object originalMessage,
java.util.concurrent.atomic.AtomicInteger count) |
AsyncWriteToken(AtmosphereResource resource,
java.lang.Object msg,
BroadcasterFuture future,
java.lang.Object originalMessage,
CacheMessage cache,
java.util.concurrent.atomic.AtomicInteger count) |
AtmosphereSession(AtmosphereResource resource)
Track the current
AtmosphereResource with all created Broadcaster |
AtmosphereSession(AtmosphereResource r,
Broadcaster... broadcasters) |
Deliver(AtmosphereResource r,
Deliver e) |
Deliver(AtmosphereResource r,
Deliver e,
CacheMessage cacheMessage) |
Deliver(Deliver.TYPE type,
java.lang.Object originalMessage,
java.lang.Object message,
AtmosphereResource r,
BroadcasterFuture<?> future,
CacheMessage cache,
boolean writeLocally,
java.util.Set<AtmosphereResource> resources,
boolean async) |
Deliver(java.lang.Object message,
AtmosphereResource r,
BroadcasterFuture<?> future,
java.lang.Object originalMessage) |
| Constructor and Description |
|---|
Deliver(Deliver.TYPE type,
java.lang.Object originalMessage,
java.lang.Object message,
AtmosphereResource r,
BroadcasterFuture<?> future,
CacheMessage cache,
boolean writeLocally,
java.util.Set<AtmosphereResource> resources,
boolean async) |
Deliver(java.lang.Object message,
java.util.Set<AtmosphereResource> resources,
BroadcasterFuture<?> future,
java.lang.Object originalMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
OnMessage.onOpen(AtmosphereResource resource)
This method will be invoked when an connection has been received and not haven't yet be suspended.
|
void |
AtmosphereHandlerAdapter.onRequest(AtmosphereResource resource) |
void |
AbstractReflectorAtmosphereHandler.Default.onRequest(AtmosphereResource resource)
When a client sends a request to its associated
AtmosphereHandler, it can decide if the underlying
connection can be suspended (creating a Continuation) or handle the connection synchronously. |
void |
OnMessage.onRequest(AtmosphereResource resource) |
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)). |
| Modifier and Type | Method and Description |
|---|---|
AtmosphereResource |
AtmosphereResourceIntrospector.injectable(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
AtmosphereResource |
AtmosphereResourceIntrospector.injectable(AtmosphereResource r) |
java.lang.String |
PathParamIntrospector.injectable(AtmosphereResource r) |
AtmosphereRequest |
AtmosphereRequestIntrospector.injectable(AtmosphereResource r) |
Broadcaster |
BroadcasterIntrospector.injectable(AtmosphereResource r) |
T |
InjectIntrospector.injectable(AtmosphereResource resource)
Returns an instance of the T
|
AtmosphereResponse |
AtmosphereResponseIntrospector.injectable(AtmosphereResource r) |
java.lang.Object |
InjectIntrospectorAdapter.injectable(AtmosphereResource resource) |
AtmosphereResourceEvent |
AtmosphereResourceEventIntrospector.injectable(AtmosphereResource r) |
void |
InjectableObjectFactory.requestScoped(java.lang.Object instance,
java.lang.Class defaultType,
AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
HeartbeatInterceptor |
HeartbeatInterceptor.clock(int interval,
AtmosphereResource r,
AtmosphereRequest request,
AtmosphereResponse response)
Configures the heartbeat sent by the server in an interval in seconds specified in parameter for the given
resource.
|
Action |
JSONPAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
CorsInterceptor.inspect(AtmosphereResource r) |
Action |
IdleResourceInterceptor.inspect(AtmosphereResource r) |
Action |
PaddingAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
BroadcastOnPostAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
ShiroInterceptor.inspect(AtmosphereResource r) |
Action |
WebSocketMessageSuspendInterceptor.inspect(AtmosphereResource r) |
Action |
AtmosphereResourceLifecycleInterceptor.inspect(AtmosphereResource r)
Automatically suspend the
AtmosphereResource based on AtmosphereResource.TRANSPORT value. |
Action |
NginxInterceptor.inspect(AtmosphereResource r) |
Action |
TrackMessageSizeB64Interceptor.inspect(AtmosphereResource r) |
Action |
HeartbeatInterceptor.inspect(AtmosphereResource r) |
Action |
SimpleRestInterceptor.inspect(AtmosphereResource r) |
Action |
SuspendTrackerInterceptor.inspect(AtmosphereResource r) |
Action |
AndroidAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
SessionCreationInterceptor.inspect(AtmosphereResource r) |
Action |
CacheHeadersInterceptor.inspect(AtmosphereResource r) |
Action |
OnDisconnectInterceptor.inspect(AtmosphereResource r) |
Action |
SSEAtmosphereInterceptor.inspect(AtmosphereResource r) |
Action |
AtmosphereResourceStateRecovery.inspect(AtmosphereResource r) |
Action |
JavaScriptProtocol.inspect(AtmosphereResource ar) |
void |
AtmosphereResourceStateRecovery.B.onAddAtmosphereResource(Broadcaster b,
AtmosphereResource r) |
void |
AtmosphereResourceStateRecovery.B.onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r) |
void |
BroadcastOnPostAtmosphereInterceptor.postInspect(AtmosphereResource r) |
void |
AtmosphereResourceLifecycleInterceptor.postInspect(AtmosphereResource r) |
void |
AtmosphereResourceStateRecovery.postInspect(AtmosphereResource r) |
java.util.List<java.lang.Object> |
AtmosphereResourceStateRecovery.retrieveCache(AtmosphereResource r,
AtmosphereResourceStateRecovery.BroadcasterTracker tracker,
boolean force) |
| Modifier and Type | Method and Description |
|---|---|
void |
BroadcasterLifecyclePolicyHandler.onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an
AtmosphereResource is getting removed to a Broadcaster. |
| Modifier and Type | Method and Description |
|---|---|
void |
PoolableBroadcasterFactory.removeAllAtmosphereResource(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
static AtmosphereResource |
Utils.websocketResource(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<java.lang.Object> |
AbstractBroadcasterProxy.broadcast(java.lang.Object msg,
AtmosphereResource r) |
java.util.concurrent.Future<java.lang.Object> |
SimpleBroadcaster.broadcast(java.lang.Object msg,
AtmosphereResource r) |
java.util.concurrent.Future<java.lang.Object> |
ExcludeSessionBroadcaster.broadcast(java.lang.Object msg,
AtmosphereResource r)
the AtmosphereResource r will be exclude for this broadcast
|
static void |
IOUtils.deliver(java.lang.Object o,
DeliverTo deliverConfig,
DeliverTo.DELIVER_TO defaultDeliver,
AtmosphereResource r)
Delivers the given message according to the specified {@link org.atmosphere.config.service.DeliverTo configuration).
|
static byte[] |
IOUtils.forceReadEntirelyAsByte(AtmosphereResource r)
Reads request body as bytes without respect
ApplicationConfig.READ_GET_BODY parameter |
static void |
Utils.inject(AtmosphereResource r) |
static void |
Utils.inject(java.lang.Object object,
java.lang.Class clazz,
AtmosphereResource r) |
protected void |
AbstractBroadcasterProxy.invokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
SimpleBroadcaster.prepareInvokeOnStateChange(AtmosphereResource r,
AtmosphereResourceEvent e) |
protected void |
SimpleBroadcaster.queueWriteIO(AtmosphereResource r,
Deliver deliver,
java.util.concurrent.atomic.AtomicInteger count) |
static java.lang.Object |
IOUtils.readEntirely(AtmosphereResource r) |
static byte[] |
IOUtils.readEntirelyAsByte(AtmosphereResource r) |
static java.lang.StringBuilder |
IOUtils.readEntirelyAsString(AtmosphereResource r) |
static boolean |
Utils.webSocketMessage(AtmosphereResource r) |
static AtmosphereResource |
Utils.websocketResource(AtmosphereResource r) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<java.lang.Object> |
AbstractBroadcasterProxy.broadcast(java.lang.Object msg,
java.util.Set<AtmosphereResource> subset) |
java.util.concurrent.Future<java.lang.Object> |
SimpleBroadcaster.broadcast(java.lang.Object msg,
java.util.Set<AtmosphereResource> subset) |
java.util.concurrent.Future<java.lang.Object> |
ExcludeSessionBroadcaster.broadcast(java.lang.Object msg,
java.util.Set<AtmosphereResource> subset)
the AtmosphereResources subset will be exclude for this broadcast
|
| 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 © 2021. All Rights Reserved.