001// 002// Name 003// $RCSfile: CacheGroup.java,v $ 004// 005// Copyright 006// Confidential Property of Kabira Technologies, Inc. 007// Copyright 2008 by Kabira Technologies, Inc. 008// All rights reserved. 009// 010// History 011// $Revision: 1.1.2.3 $ $Date: 2011/02/11 22:07:00 $ 012// 013package com.kabira.platform.annotation; 014 015import java.lang.annotation.*; 016 017/** This annotation describes cache group configuration for a distributed 018 * type that will use a cache group. 019 * 020 * @deprecated Use partitions to control where data is replicated. 021 */ 022@Retention(RetentionPolicy.RUNTIME) 023@Target(ElementType.ANNOTATION_TYPE) 024@Deprecated 025public @interface CacheGroup 026{ 027 /** Must be set true to enable the cache group. Default true. 028 */ 029 boolean enabled() default true; 030 031 /** The name of the cache group with which this type is associated. 032 */ 033 String groupName(); 034 035 /** A value of true enables asynchronous creates. Default false. 036 */ 037 boolean asyncCreate() default false; 038}