public class FineWorkspaceHeartbeat extends java.lang.Object implements WorkspaceHeartbeat
构造器和说明 |
---|
FineWorkspaceHeartbeat() |
限定符和类型 | 方法和说明 |
---|---|
void |
beat(WorkspaceConnection connection)
跳一跳
|
void |
close(WorkspaceConnection connection)
主动停止
|
int |
getInterval()
获取心跳的时间间隔
|
void |
start()
开始心跳检查
|
void |
stop()
停止心跳检查
|
public void start()
WorkspaceHeartbeat
start
在接口中 WorkspaceHeartbeat
public void stop()
WorkspaceHeartbeat
stop
在接口中 WorkspaceHeartbeat
public int getInterval()
WorkspaceHeartbeat
getInterval
在接口中 WorkspaceHeartbeat
public void beat(WorkspaceConnection connection)
WorkspaceHeartbeat
beat
在接口中 WorkspaceHeartbeat
public void close(WorkspaceConnection connection)
WorkspaceHeartbeat
close
在接口中 WorkspaceHeartbeat