blob: b8402eb636de17539ec0e92016006bad2ea48c4e (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package org.simpleframework.http.socket.table;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;
import org.simpleframework.http.socket.FrameChannel;
public class WebSocketTableSubscription {
private final Set<Integer> missedUpdates;
private final AtomicLong timeStamp;
private final FrameChannel socket;
private final AtomicLong send;
private final AtomicLong received;
public WebSocketTableSubscription(FrameChannel socket) {
this.timeStamp = new AtomicLong();
this.received = new AtomicLong();
this.send = new AtomicLong();
this.missedUpdates = new HashSet<Integer>();
this.socket = socket;
}
public Set<Integer> getMissedUpdates() {
return missedUpdates;
}
public AtomicLong getSendCount() {
return send;
}
public AtomicLong getReceiveCount() {
return received;
}
public AtomicLong getTimeStamp() {
return timeStamp;
}
public FrameChannel getSocket() {
return socket;
}
}
|