org.jersey.devoxx.samples.ee6.atmosphere
Class TimerResource

java.lang.Object
  extended by org.jersey.devoxx.samples.ee6.atmosphere.TimerResource

public class TimerResource
extends Object

curl -N -v http://localhost:8080/atmosphere-ee6-1.0-SNAPSHOT/resources/timer

curl -X POST http://localhost:8080/atmosphere-ee6-1.0-SNAPSHOT/resources/timer/start

curl -X POST http://localhost:8080/atmosphere-ee6-1.0-SNAPSHOT/resources/timer/stop curl -X POST http://localhost:8080/atmosphere-ee6-1.0-SNAPSHOT/resources/timer/hardstop

Author:
Paul Sandoz

Constructor Summary
TimerResource()
           
 
Method Summary
 Broadcastable get()
           
 void hardstop()
           
 void start()
           
 void stop()
           
 void timeout(javax.ejb.Timer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerResource

public TimerResource()
Method Detail

get

@Suspend
public Broadcastable get()

start

public void start()

timeout

public void timeout(javax.ejb.Timer timer)

stop

public void stop()

hardstop

public void hardstop()


Copyright © 2014. All Rights Reserved.