/** * Internal method used for group functionality. * <p> * @param group * @param name * @return GroupAttrName */ private GroupAttrName<K> getGroupAttrName( String group, K name ) { GroupId gid = new GroupId( this.getCacheControl().getCacheName(), group ); return new GroupAttrName<K>( gid, name ); }
/** * Internal method used for group functionality. * <p> * @param cacheName * @param group * @param name * @return GroupAttrName */ private GroupAttrName<String> getGroupAttrName( String cacheName, String group, String name ) { GroupId gid = new GroupId( cacheName, group ); return new GroupAttrName<String>( gid, name ); }
/** * Internal method used for group functionality. * <p> * @param group * @param name * @return GroupAttrName */ private GroupAttrName<K> getGroupAttrName( String group, K name ) { GroupId gid = new GroupId( this.getCacheControl().getCacheName(), group ); return new GroupAttrName<K>( gid, name ); }
private GroupAttrName<String> getGroupAttrName(String group, String name) { GroupId gid = new GroupId(groupCacheAccess.getCacheControl() .getCacheName(), group); return new GroupAttrName<String>(gid, name); }
/** * Internal method used for group functionality. * <p> * * @param cacheName * @param group * @param name * @return GroupAttrName */ private GroupAttrName<String> getGroupAttrName(String cacheName, String group, String name) { GroupId gid = new GroupId(cacheName, group); return new GroupAttrName<String>(gid, name); }
/** * Internal method used for group functionality. * <p> * * @param cacheName * @param group * @param name * @return GroupAttrName */ private GroupAttrName<String> getGroupAttrName(String cacheName, String group, String name) { GroupId gid = new GroupId(cacheName, group); return new GroupAttrName<String>(gid, name); }
/** * Gets the set of keys of objects currently in the group. * <p> * @param group * @return A Set of keys. */ @Override public Set<K> getGroupKeys( String group ) { Set<K> groupKeys = new HashSet<K>(); GroupId groupId = new GroupId( this.getCacheControl().getCacheName(), group ); for (GroupAttrName<K> gan : this.getCacheControl().getKeySet()) { if (gan.groupId.equals( groupId )) { groupKeys.add( gan.attrName ); } } return groupKeys; }
/** * Gets the set of keys of objects currently in the group. * <p> * @param group * @return A Set of keys. */ @Override public Set<K> getGroupKeys( String group ) { Set<K> groupKeys = new HashSet<K>(); GroupId groupId = new GroupId( this.getCacheControl().getCacheName(), group ); for (GroupAttrName<K> gan : this.getCacheControl().getKeySet()) { if (gan.groupId.equals( groupId )) { groupKeys.add( gan.attrName ); } } return groupKeys; }
GroupAttrName<String> groupKey = new GroupAttrName<String>(new GroupId("test", "group"), "key"); ICacheElement<GroupAttrName<String>, String> element = new CacheElement<GroupAttrName<String>, String>( "test", groupKey, "value1" );
GroupAttrName<String> groupKey = new GroupAttrName<String>(new GroupId("test", "group"), "key"); ICacheElement<GroupAttrName<String>, String> element = new CacheElement<GroupAttrName<String>, String>( "test", groupKey, "value1" );