3c99a078ae0b0ecad973b9dd02770f7d59d786a4
[jFCPlib.git] / src / net / pterodactylus / fcp / Priority.java
1 /*
2  * jSite2 - Priority.java -
3  * Copyright © 2008 David Roden
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 package net.pterodactylus.fcp;
21
22 /**
23  * The priority classes used by the Freenet node.
24  * 
25  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
26  * @version $Id$
27  */
28 public enum Priority {
29
30         /** Maximum priority. */
31         maximum,
32
33         /** Priority for interactive request, i.e. FProxy. */
34         interactive,
35
36         /** Priority for splitfile manifests. */
37         immediateSplitfile,
38
39         /** Priority for USK searches. */
40         update,
41
42         /** Priority for splitfile blocks. */
43         bulkSplitfile,
44
45         /** Priority for prefetching blocks. */
46         prefetch,
47
48         /** Minimum priority. */
49         minimum,
50
51         /** Unknown priority. */
52         unknown;
53
54         /**
55          * @see java.lang.Enum#toString()
56          */
57         @Override
58         public String toString() {
59                 return String.valueOf(ordinal());
60         }
61
62 }