|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
public class AtmosphereResourceEventListenerAdapter
An implementation of AtmosphereResourceEventListener with just log event as trace.
| Constructor Summary | |
|---|---|
AtmosphereResourceEventListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
onBroadcast(AtmosphereResourceEvent event)
Invoked when a Broadcaster.broadcast(T) occurs. |
void |
onDisconnect(AtmosphereResourceEvent event)
Invoked when the remote connection gets closed. |
void |
onResume(AtmosphereResourceEvent event)
Invoked when the AtmosphereResource.resume() is invoked or when the
suspend's time out expires. |
void |
onSuspend(AtmosphereResourceEvent event)
Invoked when the AtmosphereResource.suspend() has been completed and the response
considered as suspended. |
void |
onThrowable(AtmosphereResourceEvent event)
Invoked when an operations failed to execute for an unknown reason like : IOException because the client remotly closed the connection, a broken connection, etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereResourceEventListenerAdapter()
| Method Detail |
|---|
public void onSuspend(AtmosphereResourceEvent event)
AtmosphereResource.suspend() has been completed and the response
considered as suspended.
onSuspend in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onResume(AtmosphereResourceEvent event)
AtmosphereResource.resume() is invoked or when the
suspend's time out expires.
onResume in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onDisconnect(AtmosphereResourceEvent event)
onDisconnect in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onBroadcast(AtmosphereResourceEvent event)
Broadcaster.broadcast(T) occurs.
onBroadcast in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onThrowable(AtmosphereResourceEvent event)
onThrowable in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||