Skip to content

Commit

Permalink
Releasing 3.0.0-dev_preview1
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Dec 17, 2014
1 parent 8f717c1 commit 788ea22
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<parent>
<groupId>io.vertx</groupId>
<artifactId>vertx-parent</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-dev_preview1</version>
</parent>

<artifactId>vertx-lang-groovy</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-dev_preview1</version>

<name>Vert.x Groovy Language Support</name>

<properties>
<vertx.version>3.0.0-SNAPSHOT</vertx.version>
<vertx.version>3.0.0-dev_preview1</vertx.version>
<asciidoc.dir>${project.basedir}/src/main/asciidoc</asciidoc.dir>
</properties>

Expand Down
8 changes: 0 additions & 8 deletions src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@

= Vert.x API manual

== The Event Bus

include::io.vertx.core.eventbus.adoc[]

== Buffers

include::io.vertx.core.buffer.adoc[]

== Flow Control - Streams and Pumps

include::io.vertx.core.streams.adoc[]
19 changes: 19 additions & 0 deletions src/main/groovy/io/vertx/groovy/core/shareddata/AsyncMap.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public class AsyncMap<K,V> {
public void put(K k, V v, Handler<AsyncResult<Void>> completionHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).put(InternalHelper.unwrapObject(k), InternalHelper.unwrapObject(v), completionHandler);
}
public void put(K k, V v, long timeout, Handler<AsyncResult<Void>> completionHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).put(InternalHelper.unwrapObject(k), InternalHelper.unwrapObject(v), timeout, completionHandler);
}
public void putIfAbsent(K k, V v, Handler<AsyncResult<V>> completionHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).putIfAbsent(InternalHelper.unwrapObject(k), InternalHelper.unwrapObject(v), new Handler<AsyncResult<Object>>() {
public void handle(AsyncResult<Object> event) {
Expand All @@ -75,6 +78,19 @@ public class AsyncMap<K,V> {
}
});
}
public void putIfAbsent(K k, V v, long timeout, Handler<AsyncResult<V>> completionHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).putIfAbsent(InternalHelper.unwrapObject(k), InternalHelper.unwrapObject(v), timeout, new Handler<AsyncResult<Object>>() {
public void handle(AsyncResult<Object> event) {
AsyncResult<Object> f
if (event.succeeded()) {
f = InternalHelper.<Object>result(InternalHelper.wrapObject(event.result()))
} else {
f = InternalHelper.<Object>failure(event.cause())
}
completionHandler.handle(f)
}
});
}
/**
* Remove a value from the map, asynchronously.
* @param k The key
Expand Down Expand Up @@ -115,6 +131,9 @@ public class AsyncMap<K,V> {
public void clear(Handler<AsyncResult<Void>> resultHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).clear(resultHandler);
}
public void size(Handler<AsyncResult<Integer>> resultHandler) {
((io.vertx.core.shareddata.AsyncMap) this.delegate).size(resultHandler);
}

static final java.util.function.Function<io.vertx.core.shareddata.AsyncMap, AsyncMap> FACTORY = io.vertx.lang.groovy.Factories.createFactory() {
io.vertx.core.shareddata.AsyncMap arg -> new AsyncMap(arg);
Expand Down

0 comments on commit 788ea22

Please sign in to comment.