1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>Nice Task</title>
|
---|
6 | </head>
|
---|
7 |
|
---|
8 | <body>
|
---|
9 |
|
---|
10 | <h2><a name="echo">Nice</a></h2>
|
---|
11 | <h3>Description</h3>
|
---|
12 | <p>Provide "nice-ness" to the current thread
|
---|
13 | and/or query the current value.</p>
|
---|
14 | <h3>Parameters</h3>
|
---|
15 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
16 | <tr>
|
---|
17 | <td valign="top"><b>Attribute</b></td>
|
---|
18 | <td valign="top"><b>Description</b></td>
|
---|
19 | <td align="center" valign="top"><b>Required</b></td>
|
---|
20 | </tr>
|
---|
21 | <tr>
|
---|
22 | <td valign="top">currentpriority</td>
|
---|
23 | <td valign="top">the name of the property whose value should be
|
---|
24 | set to the current "nice-ness" level.
|
---|
25 | </td>
|
---|
26 | <td valign="top" align="center">No</td>
|
---|
27 | </tr>
|
---|
28 | <tr>
|
---|
29 | <td valign="top">newpriority</td>
|
---|
30 | <td valign="top">the value to which the
|
---|
31 | "nice-ness" level should be set.
|
---|
32 | Must be a valid Java Thread priority.
|
---|
33 | </td>
|
---|
34 | <td valign="top" align="center">No</td>
|
---|
35 | </tr>
|
---|
36 | </table>
|
---|
37 | <h3>Examples</h3>
|
---|
38 | <pre> <nice newpriority="10"/></pre>
|
---|
39 | Set the Thread priority to 10.
|
---|
40 | <pre> <nice currentpriority="priority"/></pre>
|
---|
41 | Store the current Thread priority in the user property "priority".
|
---|
42 | <pre>
|
---|
43 | <nice currentpriority="currentpriority" newpriority="1"/>
|
---|
44 | </pre>
|
---|
45 | <p>Set the current Thread priority to 1, storing the original
|
---|
46 | priority in the user property "currentpriority". This
|
---|
47 | can be used to set the priority back to its original value later.
|
---|
48 | </p>
|
---|
49 | <hr>
|
---|
50 |
|
---|
51 | <p align="center">Copyright © 2004 The Apache Software Foundation. All rights
|
---|
52 | Reserved.</p>
|
---|
53 |
|
---|
54 | </body>
|
---|
55 | </html>
|
---|
56 |
|
---|