KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > util > definition > ThreadPoolDefinition


1 /**************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package examples.util.definition;
9
10 import examples.util.definition.Definition;
11
12 /**
13  * Definition for the asynchronous concern.
14  *
15  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
16  */

17 public class ThreadPoolDefinition implements Definition {
18
19     public int getMaxSize() {
20         return m_maxSize;
21     }
22
23     public void setMaxSize(final int maxSize) {
24         m_maxSize = maxSize;
25     }
26
27     public int getMinSize() {
28         return m_minSize;
29     }
30
31     public void setMinSize(final int minSize) {
32         m_minSize = minSize;
33     }
34
35     public int getInitSize() {
36         return _initSize;
37     }
38
39     public void setInitSize(final int initSize) {
40         _initSize = initSize;
41     }
42
43     public int getKeepAliveTime() {
44         return m_keepAliveTime;
45     }
46
47     public void setKeepAliveTime(final int keepAliveTime) {
48         m_keepAliveTime = keepAliveTime;
49     }
50
51     public boolean getWaitWhenBlocked() {
52         return m_waitWhenBlocked;
53     }
54
55     public void setWaitWhenBlocked(final boolean waitWhenBlocked) {
56         m_waitWhenBlocked = waitWhenBlocked;
57     }
58
59     public boolean getBounded() {
60         return m_bounded;
61     }
62
63     public void setBounded(final boolean bounded) {
64         m_bounded = bounded;
65     }
66
67     private int m_maxSize;
68
69     private int m_minSize;
70
71     private int _initSize;
72
73     private int m_keepAliveTime;
74
75     private boolean m_waitWhenBlocked = true;
76
77     private boolean m_bounded = true;
78 }
Popular Tags