All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.cache.annotation.CacheKey Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
/**
 *  Copyright (c) 2011-2013 Terracotta, Inc.
 *  Copyright (c) 2011-2013 Oracle and/or its affiliates.
 *
 *  All rights reserved. Use is subject to license terms.
 */

/**
 *  Copyright (c) 2011-2013-2013 Terracotta, Inc.
 *  Copyright (c) 2011-2013-2013 Oracle and/or its affiliates.
 *
 *  All rights reserved. Use is subject to license terms.
 */
package javax.cache.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * Marks a method argument as part of the cache key.
 * If no arguments are marked all arguments are used. The exception is
 * for a method annotated with {@link CachePut} where the {@link CacheValue}
 * parameter is never included in the key
 *
 * @author Rick Hightower
 * @see CacheResult
 * @see CachePut
 * @see CacheRemoveEntry
 * @see CacheKeyInvocationContext#getKeyParameters()
 * @since 1.0
 */
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CacheKey {

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy