com.github.houbb.config.socket.client.dto.RpcAddressChannelDto Maven / Gradle / Ivy
package com.github.houbb.config.socket.client.dto;
import com.github.houbb.config.socket.client.rpc.dto.RpcAddress;
import io.netty.channel.Channel;
/**
* @author binbin.hou
* @since 1.0.0
*/
public class RpcAddressChannelDto {
private RpcAddress rpcAddress;
private Channel channel;
public static RpcAddressChannelDto of(RpcAddress rpcAddress,
Channel channel) {
RpcAddressChannelDto rpcAddressChannelDto = new RpcAddressChannelDto();
rpcAddressChannelDto.setRpcAddress(rpcAddress);
rpcAddressChannelDto.setChannel(channel);
return rpcAddressChannelDto;
}
public RpcAddress getRpcAddress() {
return rpcAddress;
}
public void setRpcAddress(RpcAddress rpcAddress) {
this.rpcAddress = rpcAddress;
}
public Channel getChannel() {
return channel;
}
public void setChannel(Channel channel) {
this.channel = channel;
}
@Override
public String toString() {
return "ServerAddressChannel{" +
"rpcAddress=" + rpcAddress +
", channel=" + channel +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy