org.atmosphere.jersey
Class TrackableSession

java.lang.Object
  extended by org.atmosphere.jersey.TrackableSession

public class TrackableSession
extends Object

A TrackableSession stores TrackableResource that can be retrieved when the http header called X-Atmosphere-tracking-id is added to a request.

Author:
Jeanfrancois Arcand

Method Summary
static TrackableSession getDefault()
          Return the default implementation of TrackableSession
 TrackableResource<? extends Trackable> lookup(String trackingID)
          Return the TrackableResource associated with the trackingID
 TrackableResource<? extends Trackable> lookupAndWait(String trackingID)
          Return the TrackableResource associated with the trackingID
 void track(TrackableResource<? extends Trackable> trackableResource)
          Start tracking an TrackableResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static TrackableSession getDefault()
Return the default implementation of TrackableSession

Returns:
the default implementation of TrackableSession

track

public void track(TrackableResource<? extends Trackable> trackableResource)
Start tracking an TrackableResource

Parameters:
trackableResource - a TrackableResource

lookup

public TrackableResource<? extends Trackable> lookup(String trackingID)
Return the TrackableResource associated with the trackingID

Parameters:
trackingID - a unique token.
Returns:
the TrackableResource associated with the trackingID

lookupAndWait

public TrackableResource<? extends Trackable> lookupAndWait(String trackingID)
Return the TrackableResource associated with the trackingID

Parameters:
trackingID - a unique token.
Returns:
the TrackableResource associated with the trackingID


Copyright © 2011. All Rights Reserved.