com.netflix.eureka.resources
Class ResponseCache.Key

java.lang.Object
  extended by com.netflix.eureka.resources.ResponseCache.Key
Enclosing class:
ResponseCache

public static class ResponseCache.Key
extends java.lang.Object

The key for the cached payload.


Nested Class Summary
static class ResponseCache.Key.EntityType
          An enum to define the entity that is stored in this cache for this key.
 
Constructor Summary
ResponseCache.Key(ResponseCache.Key.EntityType entityType, java.lang.String entityName, ResponseCache.KeyType type, Version v)
           
ResponseCache.Key(ResponseCache.Key.EntityType entityType, java.lang.String entityName, java.lang.String[] regions, ResponseCache.KeyType type, Version v)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 ResponseCache.Key.EntityType getEntityType()
           
 java.lang.String getHashKey()
           
 java.lang.String getName()
           
 java.lang.String[] getRegions()
           
 ResponseCache.KeyType getType()
           
 Version getVersion()
           
 int hashCode()
           
 boolean hasRegions()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseCache.Key

public ResponseCache.Key(ResponseCache.Key.EntityType entityType,
                         java.lang.String entityName,
                         ResponseCache.KeyType type,
                         Version v)

ResponseCache.Key

public ResponseCache.Key(ResponseCache.Key.EntityType entityType,
                         java.lang.String entityName,
                         @Nullable
                         java.lang.String[] regions,
                         ResponseCache.KeyType type,
                         Version v)
Method Detail

getName

public java.lang.String getName()

getHashKey

public java.lang.String getHashKey()

getType

public ResponseCache.KeyType getType()

getVersion

public Version getVersion()

getEntityType

public ResponseCache.Key.EntityType getEntityType()

hasRegions

public boolean hasRegions()

getRegions

public java.lang.String[] getRegions()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object