Package io.grpc.inprocess
Class InProcessSocketAddress
java.lang.Object
java.net.SocketAddress
io.grpc.inprocess.InProcessSocketAddress
- All Implemented Interfaces:
Serializable
Custom SocketAddress class for
InProcessTransport
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInProcessSocketAddress
(String name) Construct an address for a server identified by name. -
Method Summary
-
Constructor Details
-
InProcessSocketAddress
Construct an address for a server identified by name.- Parameters:
name
- The name of the inprocess server.- Since:
- 1.0.0
-
-
Method Details
-
getName
Gets the name of the inprocess server.- Since:
- 1.0.0
-
toString
ReturnsgetName()
. -
hashCode
public int hashCode() -
equals
Returnstrue
if the object is of the same type and server names match.
-