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,7 +31,6 @@ public class SocketServer { | ||
| 31 | private int port; | 31 | private int port; |
| 32 | private volatile boolean running = false; | 32 | private volatile boolean running = false; |
| 33 | private long receiveTimeDelay = 7000; | 33 | private long receiveTimeDelay = 7000; |
| 34 | - private ConcurrentHashMap<Class, ObjectAction> actionMapping = new ConcurrentHashMap<Class, ObjectAction>(); | ||
| 35 | private Thread connWatchDog; | 34 | private Thread connWatchDog; |
| 36 | 35 | ||
| 37 | public SocketServer(int port) { | 36 | public SocketServer(int port) { |
| @@ -54,10 +53,6 @@ public class SocketServer { | @@ -54,10 +53,6 @@ public class SocketServer { | ||
| 54 | connWatchDog.stop(); | 53 | connWatchDog.stop(); |
| 55 | } | 54 | } |
| 56 | 55 | ||
| 57 | - public void addActionMap(Class<Object> cls, ObjectAction action) { | ||
| 58 | - actionMapping.put(cls, action); | ||
| 59 | - } | ||
| 60 | - | ||
| 61 | class ConnWatchDog implements Runnable { | 56 | class ConnWatchDog implements Runnable { |
| 62 | public void run() { | 57 | public void run() { |
| 63 | try { | 58 | try { |