Skip to content

Instantly share code, notes, and snippets.

View francofabio's full-sized avatar
:octocat:

Fábio Franco francofabio

:octocat:
  • PicPay
View GitHub Profile
Response response = subscribe(response -> response.get(11) == myNsuTerminal).get(30, TimeUnit.SECONDS)
public class ResponseQueue<E> {
private final ArrayBlockingQueue<E> queue;
private boolean done;
ResponseQueue() {
this.queue = new ArrayBlockingQueue<>(1);
@francofabio
francofabio / EnumDescribable.java
Last active October 18, 2015 21:28
vraptor4 gson enum serialization
public interface EnumDescribable {
String getDescription();
}