aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/TargetWatcher.java
blob: b71fd483936eb2173f7804316d2aa83ab43bfefc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. 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);
}