Class InProcessSocketAddress

java.lang.Object
java.net.SocketAddress
io.grpc.inprocess.InProcessSocketAddress
All Implemented Interfaces:
Serializable

public final class InProcessSocketAddress extends SocketAddress
Custom SocketAddress class for InProcessTransport.
See Also:
  • Constructor Details

    • InProcessSocketAddress

      public InProcessSocketAddress(String name)
      Construct an address for a server identified by name.
      Parameters:
      name - The name of the inprocess server.
      Since:
      1.0.0
  • Method Details

    • getName

      public String getName()
      Gets the name of the inprocess server.
      Since:
      1.0.0
    • toString

      public String toString()
      Returns getName().
      Overrides:
      toString in class Object
      Since:
      1.14.0
    • hashCode

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

      public boolean equals(Object obj)
      Returns true if the object is of the same type and server names match.
      Overrides:
      equals in class Object
      Since:
      1.15.0