MCPcopy Create free account
hub / github.com/contariaa/seedqueue / discard

Method discard

src/main/java/me/contaria/seedqueue/SeedQueue.java:179–187  ·  view source on GitHub ↗

Discards the given SeedQueueEntry and removes it from the queue.

(SeedQueueEntry entry)

Source from the content-addressed store, hash-verified

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}.

Callers 3

resetInstanceMethod · 0.95
clearMethod · 0.45

Calls 1

pingMethod · 0.95

Tested by

no test coverage detected