javax.cache.Cache Maven / Gradle / Ivy
/**
*
* Copyright 2003-2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.cache;
import java.util.Collection;
import java.util.Map;
/**
* For more documentation on JCache see the
* JSR 107 project
*
* @version $Rev: 397921 $ $Date: 2006-04-29 01:23:23 +1000 (Sat, 29 Apr 2006) $
*/
public interface Cache extends Map
{
public void addListener( CacheListener listender );
public void evict();
public Map getAll( Collection keys );
public CacheEntry getCacheEntry( Object key );
public CacheStatistics getCacheStatistics();
public void load( Object obj );
public void loadAll( Collection keys );
public Object peek( Object key );
public void removeListener( CacheListener listener );
}