org.infinispan.distribution.group
Annotation Type Group


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Group

Identifies the key for a group.

@Group should be used when you have control over the key class. For example:

 class User {
 
    ...
    String office;
    ...
    
    int hashCode() {
       // Defines the hash for the key, normally used to determine location
       ...
    }
    
    // Override the location by specifying a group, all keys in the same 
    // group end up with the same owner

Author:
Pete Muir
See Also:
Grouper


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.