View Javadoc

1   package net.sourceforge.simplegamenet.framework.transport;
2   
3   public class ClientDisconnectionTask implements Runnable {
4   
5       private ClientModem clientModem;
6   
7       public ClientDisconnectionTask(ClientModem clientModem) {
8           this.clientModem = clientModem;
9       }
10  
11      /***
12       * When an object implementing interface <code>Runnable</code> is used to create a thread,
13       * starting the thread causes the object's <code>run</code> method to be called in that
14       * separately executing thread.
15       * <p/>
16       * The general contract of the method <code>run</code> is that it may take any action
17       * whatsoever.
18       *
19       * @see java.lang.Thread#run()
20       */
21      public void run() {
22          clientModem.processDisconnection();
23      }
24  
25  }