3b3c73fac4651ba823a115071e1e90a0612ed827
[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  */
27 public enum Priority {
28
29         /** Maximum priority. */
30         maximum,
31
32         /** Priority for interactive request, i.e. FProxy. */
33         interactive,
34
35         /** Priority for splitfile manifests. */
36         immediateSplitfile,
37
38         /** Priority for USK searches. */
39         update,
40
41         /** Priority for splitfile blocks. */
42         bulkSplitfile,
43
44         /** Priority for prefetching blocks. */
45         prefetch,
46
47         /** Minimum priority. */
48         minimum,
49
50         /** Unknown priority. */
51         unknown;
52
53         /**
54          * @see java.lang.Enum#toString()
55          */
56         @Override
57         public String toString() {
58                 return String.valueOf(ordinal());
59         }
60
61 }