blob: a28d3e6a72c85be7d8e69207e9b3981475dfdcfc (
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
27
28
29
30
31
32
33
34
|
/*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Remko Tronçon.
* All rights reserved.
*/
package com.isode.stroke.network;
import com.isode.stroke.signals.Signal;
public abstract class Timer {
/**
* Starts the timer.
*
* After the given period, onTick() will be called.
*/
public abstract void start();
/**
* Cancels the timer.
*
* If the timer was started, onTick() will no longer be called.
*/
public abstract void stop();
/**
* Emitted when the timer expires.
*/
public final Signal onTick = new Signal();
}
|