/** * Adds the specified listener to this cache. Note that the events * fired by this correspond to the <em>internal</em> cache's events. * @param listener the (non-null) listener to add to this policy * @throws IllegalArgumentException if listener is null. */ public void addListener( CachePolicyListener listener ) throws IllegalArgumentException { internal.addListener( listener ); }
/** * Adds the specified listener to this cache. Note that the events * fired by this correspond to the <em>internal</em> cache's events. * @param listener the (non-null) listener to add to this policy * @throws IllegalArgumentException if listener is null. */ public void addListener( CachePolicyListener listener ) throws IllegalArgumentException { internal.addListener( listener ); }
/** * Adds the specified listener to this cache. Note that the events * fired by this correspond to the <em>internal</em> cache's events. * @param listener the (non-null) listener to add to this policy * @throws IllegalArgumentException if listener is null. */ public void addListener(CachePolicyListener listener) throws IllegalArgumentException { _internal.addListener(listener); }
/** * Construct a CacheRecordManager wrapping another RecordManager and * using a given cache policy. * * @param recMgr Wrapped RecordManager * @param cache Cache policy */ public CacheRecordManager( RecordManager recMgr, CachePolicy<Long,CacheEntry> cache ) { if ( recMgr == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_517 ) ); } if ( cache == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_542 ) ); } this.recMgr = recMgr; this.cache = cache; this.cache.addListener( new CacheListener() ); }
/** * Construct a CacheRecordManager wrapping another RecordManager and * using a given cache policy. * * @param recordManager Wrapped RecordManager * @param cache Cache policy */ public CacheRecordManager( RecordManager recordManager, CachePolicy<Long,CacheEntry> cache ) { if ( recordManager == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_517 ) ); } if ( cache == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_542 ) ); } this.recordManager = recordManager; this.cache = cache; this.cache.addListener( new CacheListener() ); }
/** * Construct a CacheRecordManager wrapping another RecordManager and * using a given cache policy. * * @param recordManager Wrapped RecordManager * @param cache Cache policy */ public CacheRecordManager( RecordManager recordManager, CachePolicy<Long, CacheEntry> cache ) { if ( recordManager == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_517 ) ); } if ( cache == null ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_542 ) ); } this.recordManager = recordManager; this.cache = cache; this.cache.addListener( new CacheListener() ); }