Class ServiceInstanceInfo

java.lang.Object
com.exonum.client.response.ServiceInstanceInfo

public final class ServiceInstanceInfo
extends Object
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the name of the service instance. It serves as the primary identifier of this service in most operations. It is assigned by the network administrators.
    • getId

      public int getId()
      Returns the numeric id of the service instance. Exonum assigns it to the service on instantiation. It is mainly used to route the transaction messages belonging to this instance.
      See Also:
      TransactionMessage.getServiceId()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object