public RPCNetworkParams setIdentity(Identity identity) {
        this.identity = identity;
        return this;
    }
Sets the identity to use for the network.

@param identity The new identity.
@return This, to allow chaining.
messagebus/src/main/java/com/yahoo/messagebus/network/rpc/RPCNetworkParams.java