类 SocketTargetServerConnection
- java.lang.Object
- org.springframework.boot.devtools.tunnel.server.SocketTargetServerConnection
- 所有已实现的接口:
TargetServerConnection
public class SocketTargetServerConnection extends Object implements TargetServerConnection
Socket basedTargetServerConnection
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 SocketTargetServerConnection(PortProvider portProvider)
Create a newSocketTargetServerConnection
.
构造器详细资料
SocketTargetServerConnection
public SocketTargetServerConnection(PortProvider portProvider)
Create a newSocketTargetServerConnection
.- 参数:
portProvider
- the port provider
方法详细资料
open
public ByteChannel open(int socketTimeout) throws IOException
从接口复制的说明:TargetServerConnection
Open a connection to the target server with the specified timeout.- 指定者:
open
在接口中TargetServerConnection
- 参数:
socketTimeout
- the read timeout- 返回:
- a
ByteChannel
providing read/write access to the server - 抛出:
IOException
- in case of I/O errors