01: /*
02: * This file is part of the QuickServer library
03: * Copyright (C) 2003-2005 QuickServer.org
04: *
05: * Use, modification, copying and distribution of this software is subject to
06: * the terms and conditions of the GNU Lesser General Public License.
07: * You should have received a copy of the GNU LGP License along with this
08: * library; if not, you can download a copy from <http://www.quickserver.org/>.
09: *
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: * Encapsulates client event.
19: * @since 1.4.5
20: * @author Akshathkumar Shetty
21: */
22: public class ClientEvent {
23: public static final ClientEvent RUN_BLOCKING = new ClientEvent(
24: "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(
30: "Max Connection");
31: public static final ClientEvent MAX_CON_BLOCKING = new ClientEvent(
32: "Max Connection Blocking");
33:
34: public static final ClientEvent LOST_CON = new ClientEvent(
35: "Lost Connection");
36: public static final ClientEvent CLOSE_CON = new ClientEvent(
37: "Close Connection");
38:
39: private String event;
40:
41: private ClientEvent(String eventName) {
42: event = "(ClientEvent-" + eventName + ")";
43: }
44:
45: public String toString() {
46: return event;
47: }
48: }
|