KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quickserver > net > server > ClientEvent


1 /*
2  * This file is part of the QuickServer library
3  * Copyright (C) 2003-2005 QuickServer.org
4  *
5  * Use, modification, copying and distribution of this software is subject to
6  * the terms and conditions of the GNU Lesser General Public License.
7  * You should have received a copy of the GNU LGP License along with this
8  * library; if not, you can download a copy from <http://www.quickserver.org/>.
9  *
10  * For questions, suggestions, bug-reports, enhancement-requests etc.
11  * visit http://www.quickserver.org
12  *
13  */

14
15 package org.quickserver.net.server;
16
17
18 /**
19  * Encapsulates client event.
20  * @since 1.4.5
21  * @author Akshathkumar Shetty
22  */

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 JavaDoc event;
36     private ClientEvent(String JavaDoc eventName) {
37         event = "(ClientEvent-"+eventName+")";
38     }
39
40     public String JavaDoc toString() {
41         return event;
42     }
43 }
44
Popular Tags