01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: /**
09: * A cacheable interface for the multithreaded channels
10: * @author Peter Kharchenko {@link <a href="mailto:pkharchenko@interactivebusiness.com">pkharchenko@interactivebusiness.com</a>}
11: * @see ICacheable
12: * @see IMultithreadedChannel
13: *
14: * @deprecated Use the IChannel* interfaces instead or write a portlet. For more information see:
15: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IMultithreaded+Interfaces
16: */
17:
18: public interface IMultithreadedCacheable {
19:
20: /**
21: * Requests the channel to generate a key uniqly describing it's current state,
22: * and a description of key usage.
23: */
24: public ChannelCacheKey generateKey(String uid);
25:
26: /**
27: * Requests the channel to verify validity of the retreived cache based on the validator object.
28: */
29: public boolean isCacheValid(Object validity, String uid);
30: }
|