Adds the given SeedQueueEntry to the queue.
(SeedQueueEntry entry)
| 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. |
no test coverage detected