Package | Description |
---|---|
org.atmosphere.cpr |
Modifier and Type | Method and Description |
---|---|
Meteor |
Meteor.addListener(AtmosphereResourceEventListener e)
Add a
AtmosphereResourceEventListener which gets invoked when
responses are resuming, when the remote client closes the connection or
when the a Broadcaster.broadcast(java.lang.Object) operations occurs. |
Meteor |
Meteor.broadcast(Object o)
Broadcast an
Object to all suspended responses. |
static Meteor |
Meteor.build(javax.servlet.http.HttpServletRequest r)
Create a
Meteor using the HttpServletRequest . |
static Meteor |
Meteor.build(javax.servlet.http.HttpServletRequest req,
Broadcaster.SCOPE scope,
List<BroadcastFilter> l,
Serializer s)
Create a
Meteor using the HttpServletRequest and use a list of
BroadcastFilter and Serializer for writing the result
of a broadcast operation the HttpServletResponse . |
static Meteor |
Meteor.build(javax.servlet.http.HttpServletRequest req,
List<BroadcastFilter> l,
Serializer s)
Create a
Meteor using the HttpServletRequest and use a list of
BroadcastFilter and Serializer for writing the result
of a broadcast operation the HttpServletResponse . |
static Meteor |
Meteor.build(javax.servlet.http.HttpServletRequest r,
Serializer s)
Create a
Meteor using the HttpServletRequest and use the
Serializer for writing the result of a broadcast operation using
the HttpServletResponse . |
Meteor |
Meteor.delayBroadadcast(Object o,
long period)
Schedule a delayed broadcast, in seconds.
|
static Meteor |
Meteor.lookup(javax.servlet.http.HttpServletRequest r)
Retrieve an instance of
Meteor based on the HttpServletRequest . |
Meteor |
Meteor.removeListener(AtmosphereResourceEventListener e)
Remove a
AtmosphereResourceEventListener which gets invoked when
a response is resuming, when the remote client closes the connection or
when the a Broadcaster.broadcast(java.lang.Object) operations occurs. |
Meteor |
Meteor.resume()
Resume the underlying
HttpServletResponse . |
Meteor |
Meteor.resumeOnBroadcast(boolean resumeOnBroadcast)
Resume the Meteor after the first broadcast operation.
|
Meteor |
Meteor.schedule(Object o,
long period)
Schedule a periodic broadcast, in seconds.
|
Meteor |
Meteor.suspend(long l)
Suspend the underlying
HttpServletResponse . |
Meteor |
Meteor.suspend(long timeout,
TimeUnit timeunit)
Suspend the underlying
HttpServletResponse . |
Copyright © 2016. All rights reserved.