Skip to content

Commit

Permalink
HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress()
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
NihalJain authored and Apache9 committed Dec 16, 2023
1 parent e45b9c4 commit d747e15
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,10 @@ public static Optional<String> getRequestUserName() {
return getRequestUser().map(User::getShortName);
}

/** Returns Address of remote client if a request is ongoing, else null */
/**
* Returns the address of the remote client associated with the current RPC request or not present
* if no address is set.
*/
public static Optional<InetAddress> getRemoteAddress() {
return getCurrentCall().map(RpcCall::getRemoteAddress);
}
Expand Down

0 comments on commit d747e15

Please sign in to comment.