LoadbalanceRSocketClient that
in turn maintains and peridodically updates a list of current load-balance targets. The getKey() is used to identify a target uniquely while the transport is
used to connect to the target server.
LoadbalanceRSocketClient#create(RSocketConnector, Publisher)
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final ClientTransport |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static LoadbalanceTarget | Returns: the created instanceidentifies the load-balance target uniquely key, ClientTransport for connecting to the target transport)Create a new |
| public String | |
| public ClientTransport | |
| public int |
| key | back to summary |
|---|---|
| pack-priv final String key | |
| transport | back to summary |
|---|---|
| pack-priv final ClientTransport transport | |
| LoadbalanceTarget | back to summary |
|---|---|
| private LoadbalanceTarget(String key, ClientTransport transport) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static LoadbalanceTarget from(String key, ClientTransport transport) Create a new
| |
| getKey | back to summary |
|---|---|
| public String getKey() Return the key that identifies this target uniquely. | |
| getTransport | back to summary |
|---|---|
| public ClientTransport getTransport() Return the transport to use to connect to the target server. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |