Created
November 23, 2012 00:03
-
-
Save crazycode/4133390 to your computer and use it in GitHub Desktop.
playframework 1.x await
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void syncAmazon(final String sid) { | |
// play status 检查平均耗时 2.5s , 开放线程时间 3s 后回掉 | |
await(new Job<Selling>() { | |
@Override | |
public Selling doJobWithResult() throws Exception { | |
Selling selling = Selling.findById(sid); | |
selling.syncFromAmazon(); | |
return selling; | |
} | |
}.now()); | |
renderJSON(new Ret()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment