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: * Internal adapter for a multithreaded channel that is also cacheable.
10: * @author Peter Kharchenko {@link <a href="mailto:pkharchenko@interactivebusiness.com">pkharchenko@interactivebusiness.com</a>}
11: * @version $Revision: 36690 $
12: * @see MultithreadedChannelAdapter
13: */
14:
15: public class MultithreadedCacheableChannelAdapter extends
16: MultithreadedChannelAdapter implements ICacheable {
17: public MultithreadedCacheableChannelAdapter(
18: IMultithreadedChannel channel, String uid) {
19: super (channel, uid);
20: }
21:
22: public ChannelCacheKey generateKey() {
23: return ((IMultithreadedCacheable) channel)
24: .generateKey(this .uid);
25: }
26:
27: public boolean isCacheValid(Object validity) {
28: return ((IMultithreadedCacheable) channel).isCacheValid(
29: validity, this.uid);
30: }
31: }
|