Skip to content

Instantly share code, notes, and snippets.

Avatar

Ray Tsang saturnism

View GitHub Profile
@saturnism
saturnism / JDeferred 1.2.0 Release Note.md
Last active Aug 29, 2015
JDeferred 1.2.0 Released! Android AAR support =)
View JDeferred 1.2.0 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.2.0</version>
</dependency>
@saturnism
saturnism / How are you using JDeferred.md
Last active Oct 20, 2015
How are you using JDeferred?
View How are you using JDeferred.md

Hey JDeferred users. I'd love to hear how you are using it and any feebacks.

@saturnism
saturnism / JDeferred 1.0.0 Alpha Release Note.md
Last active Dec 14, 2015
JDeferred 1.0.0 Apha1 Released.
View JDeferred 1.0.0 Alpha Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.0-Alpha1</version>
</dependency>
View JDeferred 1.0.0 Beta Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.0-Beta1</version>
</dependency>
View JDeferred 1.0.0 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.0</version>
</dependency>
@saturnism
saturnism / gist:5665297
Created May 28, 2013
sample Infinispan JPA cache store configuration
View gist:5665297
<namedCache name="usersCache">
<loaders passivation="false" shared="true" preload="true">
<jpaStore
persistenceUnitName="myPersistenceUnit"
entityClassName="my.package.User"
/>
</loaders>
</namedCache>
@saturnism
saturnism / gist:5688196
Last active Dec 17, 2015
exciting to see some finding jdeferred useful and expanding on it!
View gist:5688196
@saturnism
saturnism / gist:5762348
Last active Dec 18, 2015
Infinispan LevelDB Cache Store Example
View gist:5762348
<loaders>
<leveldbStore
location="/tmp/leveldb/data"
expiredLocation="/tmp/leveldb/expired"/>
</loaders>
@saturnism
saturnism / Java 8 with JDeferred.md
Last active Dec 22, 2015
Java Lambda 8 with JDeferred!
View Java 8 with JDeferred.md

Just played around w/ Java 8 Lambda expression with my JDeferred project.

dm.when(() -> {
  return "Hey!";
}).done(r -> System.out.println(r));

dm.when(
  () -> { return "Hello"; },
 () -&gt; { return "World"; }
@saturnism
saturnism / JDeferred 1.0.1 Release Note.md
Created Sep 12, 2013
JDeferred 1.0.1 Released! Checkout http://jdeferred.org for updated examples, including Async Servlet and Java 8 Lambda usage.
View JDeferred 1.0.1 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.1</version>
</dependency>