net.sf.ooweb.http
Interface Cache

All Known Implementing Classes:
SimpleCache

public interface Cache

Cache specifies an interface for any type of cache wanting to serve cached ooweb responses. It can be used as part of an adapter API

Since:
0.7.1
Author:
Darren Davison

Method Summary
 ResponseState get(ObjectAndMethod oam)
          return a cached ResponseState for the keyed ObjectAndMethod, or null if no such entry exists (or if it's just been expired)
 void put(ObjectAndMethod oam, ResponseState state, java.lang.Long timeout)
          add a new object to cache specifying the maximum timeout
 

Method Detail

get

ResponseState get(ObjectAndMethod oam)
return a cached ResponseState for the keyed ObjectAndMethod, or null if no such entry exists (or if it's just been expired)

Parameters:
oam -
Returns:
a cached ResponseState object from a previous call to this ObjectAndMethod

put

void put(ObjectAndMethod oam,
         ResponseState state,
         java.lang.Long timeout)
add a new object to cache specifying the maximum timeout

Parameters:
oam -
state -
timeout -


Copyright (C) 2005-2007 OOWeb Authors.