removed trailing whitespace
This commit is contained in:
parent
ca38bc9f9d
commit
0e8096d4b4
92 changed files with 690 additions and 690 deletions
|
|
@ -6,4 +6,4 @@ package sample.rest.java;
|
|||
|
||||
public interface PersistentSimpleService {
|
||||
public String count();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,4 +39,4 @@ public class PersistentSimpleServiceImpl extends TypedTransactor implements Pers
|
|||
public void postRestart(Throwable cause) {
|
||||
System.out.println("Reinitialize after restart by supervisor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import javax.ws.rs.Path;
|
|||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Produces;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Try service out by invoking (multiple times):
|
||||
* <pre>
|
||||
* curl http://localhost:9998/persistentjavacount
|
||||
|
|
@ -24,4 +24,4 @@ public class PersistentSimpleServiceRest {
|
|||
public String count() {
|
||||
return service.count();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ package sample.rest.java;
|
|||
|
||||
public interface SimpleService {
|
||||
public String count();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public class SimpleServiceImpl extends TypedTransactor implements SimpleService
|
|||
private boolean hasStartedTicking = false;
|
||||
private TransactionalMap<String, Integer> storage;
|
||||
private Receiver receiver = TypedActor.newInstance(Receiver.class, ReceiverImpl.class);
|
||||
|
||||
|
||||
public String count() {
|
||||
if (storage == null) storage = new TransactionalMap<String, Integer>();
|
||||
if (!hasStartedTicking) {
|
||||
|
|
@ -39,4 +39,4 @@ public class SimpleServiceImpl extends TypedTransactor implements SimpleService
|
|||
public void postRestart(Throwable cause) {
|
||||
System.out.println("Reinitialize after restart by supervisor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import javax.ws.rs.Path;
|
|||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Produces;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Try service out by invoking (multiple times):
|
||||
* <pre>
|
||||
* curl http://localhost:9998/javacount
|
||||
|
|
@ -24,4 +24,4 @@ public class SimpleServiceRest {
|
|||
public String count() {
|
||||
return service.count();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue