1 14 15 package org.quickserver.net.server; 16 17 18 23 public class ClientEvent { 24 public static final ClientEvent RUN_BLOCKING = new ClientEvent("Run Blocking"); 25 public static final ClientEvent ACCEPT = new ClientEvent("Accept"); 26 public static final ClientEvent READ = new ClientEvent("Read"); 27 public static final ClientEvent WRITE = new ClientEvent("Write"); 28 29 public static final ClientEvent MAX_CON = new ClientEvent("Max Connection"); 30 public static final ClientEvent MAX_CON_BLOCKING = new ClientEvent("Max Connection Blocking"); 31 32 public static final ClientEvent LOST_CON = new ClientEvent("Lost Connection"); 33 public static final ClientEvent CLOSE_CON = new ClientEvent("Close Connection"); 34 35 private String event; 36 private ClientEvent(String eventName) { 37 event = "(ClientEvent-"+eventName+")"; 38 } 39 40 public String toString() { 41 return event; 42 } 43 } 44 | Popular Tags |