public interface AtmosphereResourceEventListener extends AtmosphereResourceHeartbeatEventListener
AtmosphereResourceHeartbeatEventListener
which is notified when heartbeat events occur.Modifier and Type | Method and Description |
---|---|
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.
|
onHeartbeat
void onPreSuspend(AtmosphereResourceEvent event)
AtmosphereResource.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.event
- a AtmosphereResourceEvent
void onSuspend(AtmosphereResourceEvent event)
AtmosphereResource.suspend()
has been completed and the response is
considered as suspended.event
- a AtmosphereResourceEvent
void onResume(AtmosphereResourceEvent event)
AtmosphereResource.resume()
is invoked or when the
suspend's time out expires.event
- a AtmosphereResourceEvent
void onDisconnect(AtmosphereResourceEvent event)
event
- a AtmosphereResourceEvent
void onBroadcast(AtmosphereResourceEvent event)
Broadcaster.broadcast(java.lang.Object)
occurs.event
- a AtmosphereResourceEvent
void onThrowable(AtmosphereResourceEvent event)
event
- a AtmosphereResourceEvent
void onClose(AtmosphereResourceEvent event)
AtmosphereResource.close()
gets called.event
- a AtmosphereResourceEvent
Copyright © 2016. All rights reserved.