01: package org.codehaus.spice.netserve.connection.impl;
02:
03: import org.codehaus.spice.netserve.connection.impl.AcceptorMonitor;
04: import org.codehaus.spice.netserve.connection.impl.DefaultAcceptorManager;
05:
06: /**
07: * A Pico compliant implementation of AcceptorManager.
08: */
09: public class PicoAcceptorManager extends DefaultAcceptorManager {
10: /**
11: * Create instance with default timeout and monitor.
12: */
13: public PicoAcceptorManager() {
14: }
15:
16: /**
17: * Create instance with default monitor.
18: *
19: * @param shutdownTimeout the timeout
20: */
21: public PicoAcceptorManager(final int shutdownTimeout) {
22: setShutdownTimeout(shutdownTimeout);
23: }
24:
25: /**
26: * Create instance with default timeout.
27: *
28: * @param monitor the monitor
29: */
30: public PicoAcceptorManager(final AcceptorMonitor monitor) {
31: setMonitor(monitor);
32: }
33:
34: /**
35: * Create instance specifying both timeout and monitor.
36: *
37: * @param shutdownTimeout the timeout
38: * @param monitor the monitor
39: */
40: public PicoAcceptorManager(final int shutdownTimeout,
41: final AcceptorMonitor monitor) {
42: setShutdownTimeout(shutdownTimeout);
43: setMonitor(monitor);
44: }
45: }
|