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