Commit cfb6cdff5004eed70dbcc7858571b0729cece8bf
1 parent
33bf5af7
socket .
Showing
1 changed file
with
0 additions
and
5 deletions
src/main/java/com/cnlive/socket/SocketServer.java
| ... | ... | @@ -31,7 +31,6 @@ public class SocketServer { |
| 31 | 31 | private int port; |
| 32 | 32 | private volatile boolean running = false; |
| 33 | 33 | private long receiveTimeDelay = 7000; |
| 34 | - private ConcurrentHashMap<Class, ObjectAction> actionMapping = new ConcurrentHashMap<Class, ObjectAction>(); | |
| 35 | 34 | private Thread connWatchDog; |
| 36 | 35 | |
| 37 | 36 | public SocketServer(int port) { |
| ... | ... | @@ -54,10 +53,6 @@ public class SocketServer { |
| 54 | 53 | connWatchDog.stop(); |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | - public void addActionMap(Class<Object> cls, ObjectAction action) { | |
| 58 | - actionMapping.put(cls, action); | |
| 59 | - } | |
| 60 | - | |
| 61 | 56 | class ConnWatchDog implements Runnable { |
| 62 | 57 | public void run() { |
| 63 | 58 | try { | ... | ... |