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

Method add

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

Adds the given SeedQueueEntry to the queue.

(SeedQueueEntry entry)

Source from the content-addressed store, hash-verified

164 * Adds the given {@link SeedQueueEntry} to the queue.
165 */
166 public static void add(SeedQueueEntry entry) {
167 synchronized (LOCK) {
168 if (SEED_QUEUE.contains(entry)) {
169 throw new IllegalArgumentException("Tried to add a SeedQueueEntry that is already in queue!");
170 }
171 SEED_QUEUE.add(Objects.requireNonNull(entry));
172 }
173 ping();
174 }
175
176 /**
177 * Discards the given {@link SeedQueueEntry} and removes it from the queue.

Callers 15

queueServerMethod · 0.95
runMethod · 0.80
getDebugTextMethod · 0.80
parseFieldMethod · 0.80
toJsonMethod · 0.80
addSecondaryKeyMethod · 0.80
addBlockingKeyMethod · 0.80
toJsonMethod · 0.80
discardMethod · 0.80
createLayoutMethod · 0.80

Calls 1

pingMethod · 0.95

Tested by

no test coverage detected