Permalink
Browse files

optimisations to event bus

  • Loading branch information...
1 parent dfe5fce commit 3f4212d6701a585cb19b25c70c72e5b407f5f75e @purplefox purplefox committed Aug 17, 2012
View
@@ -14,7 +14,7 @@
# limitations under the License.
#
# gradle version
-gradleVersion=1.0
+gradleVersion=1.1
vertxBuildToolsVersion=0.1-SNAPSHOT
# vert.x version
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=http\://services.gradle.org/distributions/gradle-1.0-bin.zip
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.1-bin.zip
@@ -352,7 +352,7 @@
* propagated to all nodes of the event bus, the handler will be called.
*/
void unregisterHandler(String address, Handler<? extends Message> handler,
- AsyncResultHandler<Void> resultHandler);
+ AsyncResultHandler<Void> resultHandler);
/**
* Unregisters a handler given the address and the handler
@@ -361,70 +361,30 @@ void unregisterHandler(String address, Handler<? extends Message> handler,
*/
void unregisterHandler(String address, Handler<? extends Message> handler);
- /**
- * Unregister a handler given the unique handler id
- * @param id The handler id
- */
- void unregisterHandler(String id);
-
- /**
- * Unregister a handler given the unique handler id
- * @param id The handler id
- * @param resultHandler Optional completion handler. If specified, when the unregister has been
- * propagated to all nodes of the event bus, the handler will be called.
- */
- void unregisterHandler(String id, AsyncResultHandler<Void> resultHandler);
-
- /**
- * Registers a handler against a uniquely generated address, the address is returned as the id
- * @param handler The handler
- * @return The unique id
- */
- String registerHandler(Handler<? extends Message> handler);
-
- /**
- * Registers a handler against a uniquely generated address, the address is returned as the id
- * @param handler
- * @param resultHandler Optional result handler. If specified, when the register has been
- * propagated to all nodes of the event bus, the handler will be called.
- * @return The unique id
- */
- String registerHandler(Handler<? extends Message> handler,
- AsyncResultHandler<Void> resultHandler);
-
/**
* Registers a handler against the specified address
* @param address The address to register it at
* @param handler The handler
* @param resultHandler Optional completion handler. If specified, when the register has been
* propagated to all nodes of the event bus, the handler will be called.
- * @return The unique id
*/
- String registerHandler(String address, Handler<? extends Message> handler,
- AsyncResultHandler<Void> resultHandler);
+ void registerHandler(String address, Handler<? extends Message> handler,
+ AsyncResultHandler<Void> resultHandler);
/**
* Registers a handler against the specified address
* @param address The address to register it at
* @param handler The handler
- * @return The unique id
*/
- String registerHandler(String address, Handler<? extends Message> handler);
+ void registerHandler(String address, Handler<? extends Message> handler);
/**
* Registers a local handler against the specified address. The handler info won't
* be propagated across the cluster
* @param address The address to register it at
* @param handler The handler
- * @return The unqiue id
*/
- String registerLocalHandler(String address, Handler<? extends Message> handler);
+ void registerLocalHandler(String address, Handler<? extends Message> handler);
- /**
- * Registers a local handler against a uniquely generated address, the address is returned as the id
- * @param handler
- * @return The unique id
- */
- String registerLocalHandler(Handler<? extends Message> handler);
}
Oops, something went wrong.

0 comments on commit 3f4212d

Please sign in to comment.