You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
1 year ago
|
package com.zc.websocket;
|
||
|
|
||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
import org.springframework.stereotype.Component;
|
||
|
|
||
|
@Component
|
||
|
@ConfigurationProperties(prefix = "zc.websocket")
|
||
|
public class WebSocketConfigParam {
|
||
|
|
||
|
private int port;
|
||
|
|
||
|
private String path;
|
||
|
|
||
|
private String password;
|
||
|
|
||
|
private int interval;
|
||
|
|
||
|
private int timeoutIntervals;
|
||
|
|
||
|
public int getPort() {
|
||
|
return port;
|
||
|
}
|
||
|
|
||
|
public void setPort(int port) {
|
||
|
this.port = port;
|
||
|
}
|
||
|
|
||
|
public String getPath() {
|
||
|
return path;
|
||
|
}
|
||
|
|
||
|
public void setPath(String path) {
|
||
|
this.path = path;
|
||
|
}
|
||
|
|
||
|
public String getPassword() {
|
||
|
return password;
|
||
|
}
|
||
|
|
||
|
public void setPassword(String password) {
|
||
|
this.password = password;
|
||
|
}
|
||
|
|
||
|
public int getInterval() {
|
||
|
return interval;
|
||
|
}
|
||
|
|
||
|
public void setInterval(int interval) {
|
||
|
this.interval = interval;
|
||
|
}
|
||
|
|
||
|
public int getTimeoutIntervals() {
|
||
|
return timeoutIntervals;
|
||
|
}
|
||
|
|
||
|
public void setTimeoutIntervals(int timeoutIntervals) {
|
||
|
this.timeoutIntervals = timeoutIntervals;
|
||
|
}
|
||
|
}
|