/** * Thread that writes to a database. * * @author Franck van Breugel */ public class Writer extends Thread { private Database database; /** * Initializes this writer with the given database. * * @param database the database to which to write. */ public Writer(Database database) { this.database = database; } /** * Writes to the database. */ public void run() { this.database.write(); } }