aboutsummaryrefslogtreecommitdiff
path: root/src/Waiter.java
blob: 4679f09bd413783166d6c2f8e55e3f594586aa07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * a helper class to implement "Wait for Message" in {@link Ivy.waitForMsg}
 * @author	Yannick Jestin
 * @author	<a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a>
 *
 *  CHANGELOG:
 *  1.2.8:
 *    no more import of java.util.*
 */

package fr.dgac.ivy ;

class Waiter extends WaitFor implements IvyMessageListener {

  public Waiter(int timeout) {
    super(timeout);
    setName("Ivy Waiter thread, for message");
  }

  boolean check() { return false; }

  public void receive(IvyClient ic, String[] args) {
    received=ic;
    interrupt();
  }
}