PageRenderTime 27ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/gwtrpccommlayer/src/test/java/com/googlecode/gwtrpccommlayer/client/impl/SomeServlet.java

https://code.google.com/p/gwtrpccommlayer/
Java | 40 lines | 28 code | 6 blank | 6 comment | 0 complexity | 8a173ccf9a07a0637e14591ab89b83a0 MD5 | raw file
  1. package com.googlecode.gwtrpccommlayer.client.impl;
  2. import com.google.inject.Singleton;
  3. import com.googlecode.gwtrpccommlayer.server.GwtRpcCommLayerServlet;
  4. import java.util.Set;
  5. import java.util.concurrent.CountDownLatch;
  6. /**
  7. * Created by IntelliJ IDEA.
  8. * User: dan
  9. * Date: 11/4/10
  10. * Time: 12:39 AM
  11. */
  12. @Singleton
  13. public class SomeServlet extends GwtRpcCommLayerServlet implements TestService{
  14. CountDownLatch easyCountdownLatch = new CountDownLatch(1);
  15. CountDownLatch mediumCountdownLatch = new CountDownLatch(1);
  16. CountDownLatch hardCountdownLatch = new CountDownLatch(1);
  17. @Override
  18. public void easy() {
  19. easyCountdownLatch.countDown();
  20. }
  21. @Override
  22. public void multipleArgs(String test, Integer another) throws Exception {
  23. throw new Exception("whatever");
  24. }
  25. @Override
  26. public String echoSimple(String test) {
  27. return test;
  28. }
  29. @Override
  30. public <E> Set<E> echoGeneric(Set<E> input) {
  31. hardCountdownLatch.countDown();
  32. return input;
  33. }
  34. }