Package io.grpc.inprocess
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 forInProcessTransport
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InProcessSocketAddress(String name)
Construct an address for a server identified by name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Returnstrue
if the object is of the same type and server names match.String
getName()
Gets the name of the inprocess server.int
hashCode()
String
toString()
ReturnsgetName()
.
-
-
-
Constructor Detail
-
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
-
-