shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.walker.tcp.connect;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.tcp.Response;
 
public class LongConnection extends AbstractConnection {
 
    public LongConnection(){}
 
    public LongConnection(String id){
        super(id);
    }
 
    @JsonIgnore
    @Override
    public boolean supportLongConnection() {
        return true;
    }
 
    @JsonIgnore
    @Override
    public void write(Response<?> response) {
        super.write(response);
        this.setLastTime(System.currentTimeMillis());
    }
}