aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-13 10:58:05 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-13 10:58:05 +0100
commit694e8b03515f25e36cef855eddb835355eff4c51 (patch)
treee16af178da1aa9148cd5f5e63d861d4871a2c9ba /src/main/java/io
parent27d74ce4423d2ec48a9289169c97958526fed77b (diff)
downloadesper-testing-694e8b03515f25e36cef855eddb835355eff4c51.tar.gz
esper-testing-694e8b03515f25e36cef855eddb835355eff4c51.tar.bz2
esper-testing-694e8b03515f25e36cef855eddb835355eff4c51.tar.xz
esper-testing-694e8b03515f25e36cef855eddb835355eff4c51.zip
PagingTableService:
o Adding support for showing a spinner if the query takes more than 500ms. o Adding a spinner when searching for people.
Diffstat (limited to 'src/main/java/io')
-rwxr-xr-xsrc/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java
index 11935cf..e95b7fa 100755
--- a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java
+++ b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java
@@ -35,6 +35,11 @@ public class CoreResource extends AbstractResource {
@Path("/person")
public List<PersonDetailJson> getPersons(@MagicParam final PageRequest pageRequest,
@QueryParam("query") final String query) throws Exception {
+
+ int sleep = 1;
+ System.out.println("Awesome");
+ Thread.sleep(sleep * 1000);
+
return da.inTransaction(new CoreDaosCallback<List<PersonDetailJson>>() {
protected List<PersonDetailJson> run() throws SQLException {
List<PersonDetailJson> list = new ArrayList<>();