01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package examples.util.definition;
08:
09: import examples.util.definition.Definition;
10:
11: /**
12: * Definition for the asynchronous concern.
13: *
14: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
15: */
16: public class ThreadPoolDefinition implements Definition {
17:
18: public int getMaxSize() {
19: return m_maxSize;
20: }
21:
22: public void setMaxSize(final int maxSize) {
23: m_maxSize = maxSize;
24: }
25:
26: public int getMinSize() {
27: return m_minSize;
28: }
29:
30: public void setMinSize(final int minSize) {
31: m_minSize = minSize;
32: }
33:
34: public int getInitSize() {
35: return _initSize;
36: }
37:
38: public void setInitSize(final int initSize) {
39: _initSize = initSize;
40: }
41:
42: public int getKeepAliveTime() {
43: return m_keepAliveTime;
44: }
45:
46: public void setKeepAliveTime(final int keepAliveTime) {
47: m_keepAliveTime = keepAliveTime;
48: }
49:
50: public boolean getWaitWhenBlocked() {
51: return m_waitWhenBlocked;
52: }
53:
54: public void setWaitWhenBlocked(final boolean waitWhenBlocked) {
55: m_waitWhenBlocked = waitWhenBlocked;
56: }
57:
58: public boolean getBounded() {
59: return m_bounded;
60: }
61:
62: public void setBounded(final boolean bounded) {
63: m_bounded = bounded;
64: }
65:
66: private int m_maxSize;
67:
68: private int m_minSize;
69:
70: private int _initSize;
71:
72: private int m_keepAliveTime;
73:
74: private boolean m_waitWhenBlocked = true;
75:
76: private boolean m_bounded = true;
77: }
|