1 /* 2 * ____. 3 * __/\ ______| |__/\. _______ 4 * __ .____| | \ | +----+ \ 5 * _______| /--| | | - \ _ | : - \_________ 6 * \\______: :---| : : | : | \________> 7 * |__\---\_____________:______: :____|____:_____\ 8 * /_____| 9 * 10 * . . . i n j a h i a w e t r u s t . . . 11 * 12 * 13 * 14 * ----- BEGIN LICENSE BLOCK ----- 15 * Version: JCSL 1.0 16 * 17 * The contents of this file are subject to the Jahia Community Source License 18 * 1.0 or later (the "License"); you may not use this file except in 19 * compliance with the License. You may obtain a copy of the License at 20 * http://www.jahia.org/license 21 * 22 * Software distributed under the License is distributed on an "AS IS" basis, 23 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 24 * for the rights, obligations and limitations governing use of the contents 25 * of the file. The Original and Upgraded Code is the Jahia CMS and Portal 26 * Server. The developer of the Original and Upgraded Code is JAHIA Ltd. JAHIA 27 * Ltd. owns the copyrights in the portions it created. All Rights Reserved. 28 * 29 * The Developer of the Shared Modifications is Jahia Solution Sarl. 30 * Portions created by the Initial Developer are Copyright (C) 2002 by the 31 * Initial Developer. All Rights Reserved. 32 * 33 * Contributor(s): 34 * 12 nov. 2003, Jahia Solutions Sarl, Fulco Houkes : Initial version 35 * 36 * ----- END LICENSE BLOCK ----- 37 */ 38 39 package org.jahia.services.cache; 40 41 42 /** 43 * This interface specifies the methods a Cache Listeners has to implement in order to be registered 44 * as a listener into a Cache instance. 45 * 46 * @author Fulco Houkes 47 * @since Jahia 4.0.2 48 */ 49 public interface CacheListener { 50 51 /** 52 * This method is called each time the cache flushes its items. 53 * Warning : no calls to flush should be done in this method or this will 54 * result in recursive calls ! 55 * 56 * @param cacheName the name of the cache which flushed its items. 57 */ 58 public void onCacheFlush (String cacheName); 59 60 public void onCachePut (String cacheName, Object entryKey); 61 62 } 63