PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms 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
 1package com.googlecode.gwtrpccommlayer.client.impl;
 2
 3import com.google.inject.Singleton;
 4import com.googlecode.gwtrpccommlayer.server.GwtRpcCommLayerServlet;
 5
 6import java.util.Set;
 7import java.util.concurrent.CountDownLatch;
 8
 9/**
10* Created by IntelliJ IDEA.
11* User: dan
12* Date: 11/4/10
13* Time: 12:39 AM
14*/
15@Singleton
16public class SomeServlet extends GwtRpcCommLayerServlet implements TestService{
17    CountDownLatch easyCountdownLatch = new CountDownLatch(1);
18    CountDownLatch mediumCountdownLatch = new CountDownLatch(1);
19    CountDownLatch hardCountdownLatch = new CountDownLatch(1);
20    @Override
21    public void easy() {
22        easyCountdownLatch.countDown();
23    }
24
25    @Override
26    public void multipleArgs(String test, Integer another) throws Exception {
27        throw new Exception("whatever");
28    }
29
30    @Override
31    public String echoSimple(String test) {
32        return test;
33    }
34
35    @Override
36    public <E> Set<E> echoGeneric(Set<E> input) {
37        hardCountdownLatch.countDown();
38        return input;
39    }
40}