public class ConnectionID extends Object implements Serializable
ConnectionID identifies a connection to a remote task manager by the socket address and
a connection index. This allows multiple connections to the same task manager to be distinguished
by their connection index.
The connection index is assigned by the IntermediateResult and ensures that it is safe
to multiplex multiple data transfers over the same physical TCP connection.
| 构造器和说明 |
|---|
ConnectionID(ResourceID resourceID,
InetSocketAddress address,
int connectionIndex) |
ConnectionID(TaskManagerLocation connectionInfo,
int connectionIndex) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other) |
InetSocketAddress |
getAddress() |
int |
getConnectionIndex() |
ResourceID |
getResourceID() |
int |
hashCode() |
String |
toString() |
public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex)
public ConnectionID(ResourceID resourceID, InetSocketAddress address, int connectionIndex)
public ResourceID getResourceID()
public InetSocketAddress getAddress()
public int getConnectionIndex()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.