|
||||||||||
| 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 which just log events with log level TRACE.
| Nested Class Summary | |
|---|---|
static class |
AtmosphereResourceEventListenerAdapter.OnBroadcast
On Broadcast's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnClose
On Close's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnDisconnect
On Disconnect's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnPreSuspend
On PreSuspend's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnResume
On Resume's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnSuspend
On Suspend's Listener |
static class |
AtmosphereResourceEventListenerAdapter.OnThrowable
On Throwable's Listener |
| Constructor Summary | |
|---|---|
AtmosphereResourceEventListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
onBroadcast(AtmosphereResourceEvent event)
Invoked when a Broadcaster.broadcast(java.lang.Object) occurs. |
void |
onClose(AtmosphereResourceEvent event)
Invoked when AtmosphereResource.close() gets called. |
void |
onDisconnect(AtmosphereResourceEvent event)
Invoked when the remote connection gets closed. |
void |
onPreSuspend(AtmosphereResourceEvent event)
Invoked when the AtmosphereResource.suspend() is in the process of being suspended
but nothing has yet been written on the connection. |
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 is
considered as suspended. |
void |
onThrowable(AtmosphereResourceEvent event)
Invoked when an operations failed to execute for an unknown reason (eg. |
| 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 onPreSuspend(AtmosphereResourceEvent event)
AtmosphereResourceEventListenerAtmosphereResource.suspend() is in the process of being suspended
but nothing has yet been written on the connection. An implementation could configure the request's headers,
flush some data, etc. during that stage.
onPreSuspend in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onSuspend(AtmosphereResourceEvent event)
AtmosphereResourceEventListenerAtmosphereResource.suspend() has been completed and the response is
considered as suspended.
onSuspend in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onResume(AtmosphereResourceEvent event)
AtmosphereResourceEventListenerAtmosphereResource.resume() is invoked or when the
suspend's time out expires.
onResume in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onDisconnect(AtmosphereResourceEvent event)
AtmosphereResourceEventListener
onDisconnect in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onBroadcast(AtmosphereResourceEvent event)
AtmosphereResourceEventListenerBroadcaster.broadcast(java.lang.Object) occurs.
onBroadcast in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onThrowable(AtmosphereResourceEvent event)
AtmosphereResourceEventListener
onThrowable in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEventpublic void onClose(AtmosphereResourceEvent event)
AtmosphereResourceEventListenerAtmosphereResource.close() gets called.
onClose in interface AtmosphereResourceEventListenerevent - a AtmosphereResourceEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||