blob: 65611886f9cf3035dc98e37210c06a3b85d0d567 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2019 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.nodeagent;
/**
* @author freva
*/
public interface NodeAgentContextSupplier {
/**
* Blocks until the next context is ready
* @return context
* @throws InterruptedException if {@link #interrupt()} was called before this method returned
*/
NodeAgentContext nextContext() throws InterruptedException;
/** Interrupts the thread(s) currently waiting in {@link #nextContext()} */
void interrupt();
}
|