1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 | <html>
|
---|
18 |
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
21 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
22 | <title>Nice Task</title>
|
---|
23 | </head>
|
---|
24 |
|
---|
25 | <body>
|
---|
26 |
|
---|
27 | <h2><a name="echo">Nice</a></h2>
|
---|
28 | <h3>Description</h3>
|
---|
29 | <p>Provide "nice-ness" to the current thread
|
---|
30 | and/or query the current value.</p>
|
---|
31 | <h3>Parameters</h3>
|
---|
32 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
33 | <tr>
|
---|
34 | <td valign="top"><b>Attribute</b></td>
|
---|
35 | <td valign="top"><b>Description</b></td>
|
---|
36 | <td align="center" valign="top"><b>Required</b></td>
|
---|
37 | </tr>
|
---|
38 | <tr>
|
---|
39 | <td valign="top">currentpriority</td>
|
---|
40 | <td valign="top">the name of the property whose value should be
|
---|
41 | set to the current "nice-ness" level.
|
---|
42 | </td>
|
---|
43 | <td valign="top" align="center">No</td>
|
---|
44 | </tr>
|
---|
45 | <tr>
|
---|
46 | <td valign="top">newpriority</td>
|
---|
47 | <td valign="top">the value to which the
|
---|
48 | "nice-ness" level should be set.
|
---|
49 | Must be a valid Java Thread priority.
|
---|
50 | </td>
|
---|
51 | <td valign="top" align="center">No</td>
|
---|
52 | </tr>
|
---|
53 | </table>
|
---|
54 | <h3>Examples</h3>
|
---|
55 | <pre> <nice newpriority="10"/></pre>
|
---|
56 | Set the Thread priority to 10 (highest).
|
---|
57 | <pre> <nice currentpriority="priority"/></pre>
|
---|
58 | Store the current Thread priority in the user property "priority".
|
---|
59 | <pre>
|
---|
60 | <nice currentpriority="currentpriority" newpriority="1"/>
|
---|
61 | </pre>
|
---|
62 | <p>Set the current Thread priority to 1 (lowest), storing the original
|
---|
63 | priority in the user property "currentpriority". This
|
---|
64 | can be used to set the priority back to its original value later.
|
---|
65 | </p>
|
---|
66 |
|
---|
67 |
|
---|
68 | </body>
|
---|
69 | </html>
|
---|
70 |
|
---|