|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AtmosphereResourceEvent<E,F>
An AtmosphereResourceEvent is created every time an event occurs like when a
Broadcaster.broadcast(java.lang.Object) is executed, when a Browser close
remotly close the connection or when a suspended times out or gets resumed. When
such events occcurs, an instance of that class will be created and its associated
AtmosphereHandler.onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent)
will be invoked.
| Method Summary | |
|---|---|
Object |
getMessage()
Return the object that were pass to Broadcaster.broadcast(java.lang.Object) |
AtmosphereResource<E,F> |
getResource()
Return the AtmosphereResource associated with this event |
boolean |
isCancelled()
Return true when the remote client close the connection. |
boolean |
isResumedOnTimeout()
Return true is the response gets resumed after a timeout. |
boolean |
isResuming()
Return true/tt> if that AtmosphereResource.resume() has been
invoked |
boolean |
isSuspended()
Return true/tt> if that AtmosphereResource.suspend() has been
invoked and set to true |
void |
write(OutputStream os,
Object o)
Write the Object using the OuputStream by invoking
the current Serializer. |
| Method Detail |
|---|
Object getMessage()
Broadcaster.broadcast(java.lang.Object)
Broadcaster.broadcast(java.lang.Object)boolean isResumedOnTimeout()
boolean isCancelled()
boolean isSuspended()
AtmosphereResource.suspend() has been
invoked and set to true
AtmosphereResource.suspend() has been
invoked and set to trueboolean isResuming()
AtmosphereResource.resume() has been
invoked
AtmosphereResource.resume() has been
invoked and set to trueAtmosphereResource<E,F> getResource()
AtmosphereResource associated with this event
AtmosphereResource
void write(OutputStream os,
Object o)
throws IOException
Object using the OuputStream by invoking
the current Serializer. If Serializer is null, the Object
will be directly written using the {
os - OuputStreamo - Object
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||