PageRenderTime 92ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 1ms

/src/mpv5/utils/jobs/Waiter.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 32 lines | 4 code | 2 blank | 26 comment | 0 complexity | 58f47e00884db0110a485743cedd2eff MD5 | raw file
 1/*
 2 *  This file is part of YaBS.
 3 *
 4 *      YaBS is free software: you can redistribute it and/or modify
 5 *      it under the terms of the GNU General Public License as published by
 6 *      the Free Software Foundation, either version 3 of the License, or
 7 *      (at your option) any later version.
 8 *
 9 *      YaBS is distributed in the hope that it will be useful,
10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *      GNU General Public License for more details.
13 *
14 *      You should have received a copy of the GNU General Public License
15 *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18package mpv5.utils.jobs;
19
20/**
21 *
22 *  This interface marks a class which is able to wait for a long running task to finish
23 */
24public interface Waiter {
25    /**
26     * Called by the {@link Job} after the {@link Waitable} has done its job
27     * @param object The resulting object (maybe a file, or anything else) from the Waitable
28     * @param exceptions
29     * @throws Exception
30     */
31    public abstract void set(Object object, Exception exceptions) throws Exception;
32}