01: /* Copyright 2003 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 character channel that is also cacheable.
10: * @author Peter Kharchenko {@link <a href="mailto:pkharchenko@interactivebusiness.com"">pkharchenko@interactivebusiness.com"</a>}
11: * @author <a href="mailto:nbolton@unicon.net">Nick Bolton</a>
12: * @version $Revision: 36690 $
13: * @see MultithreadedCharacterChannelAdapter
14: */
15: public class MultithreadedCacheableCharacterChannelAdapter extends
16: MultithreadedCharacterChannelAdapter implements ICacheable {
17: public MultithreadedCacheableCharacterChannelAdapter(
18: IMultithreadedCharacterChannel 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: }
|