Advertisement
riking

Untitled

May 25th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. /**
  2.  * All the methods in the Database interface shall call asynchronous tasks.
  3.  */
  4. public interface Database {
  5.     public void saveSinglePlayer(PlayerAccount account);
  6.     public void saveAllPlayers(Collection<PlayerAccount> accounts);
  7.     public void saveSingleBank(BankAccount account);
  8.     public void saveAllBanks(Collection<BankAccount> banks);
  9.     public void loadAllPlayers(AccountStorage destination);
  10.     public void loadAllBanks(AccountStorage destination);
  11.     public void pruneOldAccounts(long maxAge);
  12.     /**
  13.      * This method blocks until all running tasks are complete.
  14.      */
  15.     public void waitForTasks();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement