com.sage.orion.sdata.servlet
Class TrackingIDMapImpl

java.lang.Object
  extended by com.sage.orion.sdata.servlet.TrackingIDMapImpl
All Implemented Interfaces:
TrackingIDMap

public class TrackingIDMapImpl
extends java.lang.Object
implements TrackingIDMap


Constructor Summary
TrackingIDMapImpl()
          Default constructor.
TrackingIDMapImpl(long delayAmount)
          Constructor.
 
Method Summary
 void add(java.lang.String trackingID)
          Adds the given Tracking ID to the map.
 void add(java.lang.String trackingID, java.lang.Object o)
          Adds the given Tracking ID and object to the map.
 void cleanup()
          Runs a clean up routine on the Tracking Map.
 void clear()
          Clears out the Tracking ID Map.
 boolean exists(java.lang.String trackingID)
          Determines if the given Tracking ID exists in the map.
 java.lang.Object get(java.lang.String trackingID)
          Gets the object associated with the tracking ID.
 void remove(java.lang.String trackingID)
          Removes the given Tracking ID from the map.
 int size()
          Gets the size of the Tracking ID map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackingIDMapImpl

public TrackingIDMapImpl()
Default constructor.


TrackingIDMapImpl

public TrackingIDMapImpl(long delayAmount)
Constructor.

Parameters:
delayAmount -
Method Detail

add

public void add(java.lang.String trackingID)
Description copied from interface: TrackingIDMap
Adds the given Tracking ID to the map.

Specified by:
add in interface TrackingIDMap
Parameters:
trackingID - the Tracking ID to add

add

public void add(java.lang.String trackingID,
                java.lang.Object o)
Description copied from interface: TrackingIDMap
Adds the given Tracking ID and object to the map.

Specified by:
add in interface TrackingIDMap
Parameters:
trackingID - the Tracking ID to add
o - the object to add keyed by the given Tracking ID

cleanup

public void cleanup()
Description copied from interface: TrackingIDMap
Runs a clean up routine on the Tracking Map.

Specified by:
cleanup in interface TrackingIDMap

exists

public boolean exists(java.lang.String trackingID)
Description copied from interface: TrackingIDMap
Determines if the given Tracking ID exists in the map.

Specified by:
exists in interface TrackingIDMap
Parameters:
trackingID - the Tracking ID to check for
Returns:
true if the given Tracking ID exists in the map

remove

public void remove(java.lang.String trackingID)
Description copied from interface: TrackingIDMap
Removes the given Tracking ID from the map.

Specified by:
remove in interface TrackingIDMap
Parameters:
trackingID - the Tracking ID to remove

size

public int size()
Description copied from interface: TrackingIDMap
Gets the size of the Tracking ID map.

Specified by:
size in interface TrackingIDMap
Returns:
the number of items in the map

get

public java.lang.Object get(java.lang.String trackingID)
Description copied from interface: TrackingIDMap
Gets the object associated with the tracking ID.

Specified by:
get in interface TrackingIDMap
Parameters:
trackingID - the Tracking ID whose object is to be returned
Returns:
the object associated with the Tracking ID or null if no object is associated with the Tracking ID.

clear

public void clear()
Description copied from interface: TrackingIDMap
Clears out the Tracking ID Map.

Specified by:
clear in interface TrackingIDMap


Copyright © 2011 Sage Software, Inc. All rights reserved.