Discards the given SeedQueueEntry and removes it from the queue.
(SeedQueueEntry entry)
| 177 | * Discards the given {@link SeedQueueEntry} and removes it from the queue. |
| 178 | */ |
| 179 | public static void discard(SeedQueueEntry entry) { |
| 180 | entry.discard(); |
| 181 | synchronized (LOCK) { |
| 182 | if (!SEED_QUEUE.remove(entry)) { |
| 183 | throw new IllegalArgumentException("Tried to discard a SeedQueueEntry that is not currently in queue!"); |
| 184 | } |
| 185 | } |
| 186 | ping(); |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * @return If the {@link SeedQueueThread} should launch another {@link SeedQueueEntry}. |
no test coverage detected