Class SchemaRegistryIdentity
java.lang.Object
io.confluent.kafka.schemaregistry.storage.SchemaRegistryIdentity
The identity of a schema registry instance.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaRegistryIdentity(String host, Integer port, Boolean leaderEligibility, String scheme) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SchemaRegistryIdentitystatic SchemaRegistryIdentityfromJson(ByteBuffer json) static intgetHost()booleangetPort()getUrl()inthashCode()isLeader()voidvoidvoidsetLeaderEligibility(Boolean eligibility) voidvoidvoidsetVersion(Integer version) toJson()toString()
-
Field Details
-
CURRENT_VERSION
public static final int CURRENT_VERSION- See Also:
-
-
Constructor Details
-
SchemaRegistryIdentity
-
-
Method Details
-
fromJson
- Throws:
IOException
-
fromJson
-
getVersion
-
setVersion
-
getHost
-
setHost
-
getPort
-
setPort
-
getLeaderEligibility
public boolean getLeaderEligibility() -
setLeaderEligibility
-
getScheme
-
setScheme
-
getCurrentVersion
public static int getCurrentVersion() -
isLeader
-
setLeader
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
- Throws:
IOException
-
toJsonBytes
-
getUrl
-