util.java

来自「同步接收web services请求」· Java 代码 · 共 24 行

JAVA
24
字号
package com.aceway.vas.commons.tcp;

import com.aceway.vas.commons.tcp.impl.TcpClientImpl;
//import com.aceway.vas.commons.tcp.impl.TcpServerImpl;


public class Util {
	
	private static TcpClient tcpClient;

//	public static TcpServer getServer(){
//		return new TcpServerImpl();
//	}

	
	public synchronized static TcpClient getClient(){
		if (tcpClient == null) {
			tcpClient = new TcpClientImpl();
		}
		return tcpClient;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?