Package com.netflix.eureka.registry
Class Key
- java.lang.Object
-
- com.netflix.eureka.registry.Key
-
public class Key extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKey.EntityTypeAn enum to define the entity that is stored in this cache for this key.static classKey.KeyType
-
Constructor Summary
Constructors Constructor Description Key(Key.EntityType entityType, java.lang.String entityName, Key.KeyType type, Version v, com.netflix.appinfo.EurekaAccept eurekaAccept)Key(Key.EntityType entityType, java.lang.String entityName, Key.KeyType type, Version v, com.netflix.appinfo.EurekaAccept eurekaAccept, java.lang.String[] regions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeycloneWithoutRegions()booleanequals(java.lang.Object other)Key.EntityTypegetEntityType()com.netflix.appinfo.EurekaAcceptgetEurekaAccept()java.lang.StringgetHashKey()java.lang.StringgetName()java.lang.String[]getRegions()Key.KeyTypegetType()VersiongetVersion()inthashCode()booleanhasRegions()java.lang.StringtoStringCompact()
-
-
-
Constructor Detail
-
Key
public Key(Key.EntityType entityType, java.lang.String entityName, Key.KeyType type, Version v, com.netflix.appinfo.EurekaAccept eurekaAccept)
-
Key
public Key(Key.EntityType entityType, java.lang.String entityName, Key.KeyType type, Version v, com.netflix.appinfo.EurekaAccept eurekaAccept, @Nullable java.lang.String[] regions)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getHashKey
public java.lang.String getHashKey()
-
getType
public Key.KeyType getType()
-
getVersion
public Version getVersion()
-
getEurekaAccept
public com.netflix.appinfo.EurekaAccept getEurekaAccept()
-
getEntityType
public Key.EntityType getEntityType()
-
hasRegions
public boolean hasRegions()
-
getRegions
public java.lang.String[] getRegions()
-
cloneWithoutRegions
public Key cloneWithoutRegions()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toStringCompact
public java.lang.String toStringCompact()
-
-