blob: aded8f3320db3f48ca1eeb9bc7cc212a360aec74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;
/**
* Interface used to notify when a {@link Target} becomes
* invalid. Listening is controlled with the {@link Target#addWatcher
* Target.addWatcher} and {@link Target#removeWatcher
* Target.removeWatcher} methods.
**/
public interface TargetWatcher {
/**
* Invoked when a target becomes invalid.
*
* @param target the target that has become invalid.
**/
public void notifyTargetInvalid(Target target);
}
|