org.atmosphere.cpr
Class AtmosphereResourceEventListenerAdapter

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
All Implemented Interfaces:
AtmosphereResourceEventListener

public class AtmosphereResourceEventListenerAdapter
extends Object
implements AtmosphereResourceEventListener

An implementation of AtmosphereResourceEventListener with just log event as trace.

Author:
Jeanfrancois Arcand

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

AtmosphereResourceEventListenerAdapter

public AtmosphereResourceEventListenerAdapter()
Method Detail

onSuspend

public void onSuspend(AtmosphereResourceEvent event)
Invoked when the AtmosphereResource.suspend() has been completed and the response considered as suspended.

Specified by:
onSuspend in interface AtmosphereResourceEventListener
Parameters:
event - a AtmosphereResourceEvent

onResume

public void onResume(AtmosphereResourceEvent event)
Invoked when the AtmosphereResource.resume() is invoked or when the suspend's time out expires.

Specified by:
onResume in interface AtmosphereResourceEventListener
Parameters:
event - a AtmosphereResourceEvent

onDisconnect

public void onDisconnect(AtmosphereResourceEvent event)
Invoked when the remote connection gets closed.

Specified by:
onDisconnect in interface AtmosphereResourceEventListener
Parameters:
event - a AtmosphereResourceEvent

onBroadcast

public void onBroadcast(AtmosphereResourceEvent event)
Invoked when a Broadcaster.broadcast(T) occurs.

Specified by:
onBroadcast in interface AtmosphereResourceEventListener
Parameters:
event - a AtmosphereResourceEvent

onThrowable

public 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.

Specified by:
onThrowable in interface AtmosphereResourceEventListener
Parameters:
event - a AtmosphereResourceEvent


Copyright © 2013. All Rights Reserved.