com.triactive.jdo.store.request
Class RequestCache

java.lang.Object
  extended bycom.triactive.jdo.store.request.RequestCache

public final class RequestCache
extends java.lang.Object

A cache of request objects.

Author:
Mike Martin

Method Summary
 void clear()
          Clears this request cache.
static RequestCache getInstance()
          Returns the singleton instance of the request cache.
 Request getRequest(Request.Id id)
          Returns a request object having the given request identifier.
 int size()
          Returns the current number of entries in this request cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RequestCache getInstance()
Returns the singleton instance of the request cache.


getRequest

public Request getRequest(Request.Id id)
Returns a request object having the given request identifier. The returned request object will be cached for re-use by subsequent calls to getRequest().

Parameters:
id - The request identifier.
Returns:
A request object.

size

public int size()
Returns the current number of entries in this request cache.


clear

public void clear()
Clears this request cache.



Copyright © 2001-2007 The TJDO Project All Rights Reserved.