Package io.grpc.inprocess
Class InProcessSocketAddress
- java.lang.Object
-
- java.net.SocketAddress
-
- io.grpc.inprocess.InProcessSocketAddress
-
- All Implemented Interfaces:
java.io.Serializable
public final class InProcessSocketAddress extends java.net.SocketAddressCustom SocketAddress class forInProcessTransport.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InProcessSocketAddress(java.lang.String name)Construct an address for a server identified by name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Returnstrueif the object is of the same type and server names match.java.lang.StringgetName()Gets the name of the inprocess server.inthashCode()java.lang.StringtoString()ReturnsgetName().
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the inprocess server.- Since:
- 1.0.0
-
toString
public java.lang.String toString()
ReturnsgetName().- Overrides:
toStringin classjava.lang.Object- Since:
- 1.14.0
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Returnstrueif the object is of the same type and server names match.- Overrides:
equalsin classjava.lang.Object- Since:
- 1.15.0
-
-