/** * Register the collector as a consumer of the event bus with the specified address. * @param address the registration address * @return the subscribed message consumer */ public io.vertx.rxjava.core.eventbus.MessageConsumer register(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.register(address)); return ret; }
/** * Set the number of messages this registration will buffer when this stream is paused. The default * value is <code>1000</code>. * <p> * When a new value is set, buffered messages may be discarded to reach the new value. The most recent * messages will be kept. * @param maxBufferedMessages the maximum number of messages that can be buffered * @return this registration */ public io.vertx.rxjava.core.eventbus.MessageConsumer<T> setMaxBufferedMessages(int maxBufferedMessages) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.setMaxBufferedMessages(maxBufferedMessages), __typeArg_0); return ret; }
/** * Register the collector as a consumer of the event bus with the specified address. * @param address the registration address * @return the subscribed message consumer */ public io.vertx.rxjava.core.eventbus.MessageConsumer register(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.register(address)); return ret; }
/** * Set the number of messages this registration will buffer when this stream is paused. The default * value is <code>1000</code>. * <p> * When a new value is set, buffered messages may be discarded to reach the new value. The most recent * messages will be kept. * @param maxBufferedMessages the maximum number of messages that can be buffered * @return this registration */ public io.vertx.rxjava.core.eventbus.MessageConsumer<T> setMaxBufferedMessages(int maxBufferedMessages) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.setMaxBufferedMessages(maxBufferedMessages), __typeArg_0); return ret; }
/** * Like {@link io.vertx.rxjava.core.eventbus.EventBus#consumer} but the address won't be propagated across the cluster. * @param address the address to register it at * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> localConsumer(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.localConsumer(address), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Creates a consumer on the given AMQP address. * * This method MUST be called from the bridge Context thread, as used in the result handler callback from the start * methods. The bridge MUST be successfully started before the method is called. * @param amqpAddress the address to consume from * @return the consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> createConsumer(String amqpAddress) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.createConsumer(amqpAddress), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Like {@link io.vertx.rxjava.core.eventbus.EventBus#consumer} but the address won't be propagated across the cluster. * @param address the address that will register it at * @param handler the handler that will process the received messages * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> localConsumer(String address, Handler<io.vertx.rxjava.core.eventbus.Message<T>> handler) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.localConsumer(address, new Handler<io.vertx.core.eventbus.Message<T>>() { public void handle(io.vertx.core.eventbus.Message<T> event) { handler.handle(io.vertx.rxjava.core.eventbus.Message.newInstance(event, io.vertx.lang.rx.TypeArg.unknown())); } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a message consumer against the specified address. * <p> * The returned consumer is not yet registered * at the address, registration will be effective when {@link io.vertx.rxjava.core.eventbus.MessageConsumer#handler} * is called. * @param address the address that it will register it at * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> consumer(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.consumer(address), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Like {@link io.vertx.rxjava.core.eventbus.EventBus#consumer} but the address won't be propagated across the cluster. * @param address the address to register it at * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> localConsumer(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.localConsumer(address), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Like {@link io.vertx.rxjava.core.eventbus.EventBus#consumer} but the address won't be propagated across the cluster. * @param address the address that will register it at * @param handler the handler that will process the received messages * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> localConsumer(String address, Handler<io.vertx.rxjava.core.eventbus.Message<T>> handler) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.localConsumer(address, new Handler<io.vertx.core.eventbus.Message<T>>() { public void handle(io.vertx.core.eventbus.Message<T> event) { handler.handle(io.vertx.rxjava.core.eventbus.Message.newInstance(event, io.vertx.lang.rx.TypeArg.unknown())); } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a message consumer against the specified address. * <p> * The returned consumer is not yet registered * at the address, registration will be effective when {@link io.vertx.rxjava.core.eventbus.MessageConsumer#handler} * is called. * @param address the address that it will register it at * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> consumer(String address) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.consumer(address), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a consumer and register it against the specified address. * @param address the address that will register it at * @param handler the handler that will process the received messages * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> consumer(String address, Handler<io.vertx.rxjava.core.eventbus.Message<T>> handler) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.consumer(address, new Handler<io.vertx.core.eventbus.Message<T>>() { public void handle(io.vertx.core.eventbus.Message<T> event) { handler.handle(io.vertx.rxjava.core.eventbus.Message.newInstance(event, io.vertx.lang.rx.TypeArg.unknown())); } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a consumer and register it against the specified address. * @param address the address that will register it at * @param handler the handler that will process the received messages * @return the event bus message consumer */ public <T> io.vertx.rxjava.core.eventbus.MessageConsumer<T> consumer(String address, Handler<io.vertx.rxjava.core.eventbus.Message<T>> handler) { io.vertx.rxjava.core.eventbus.MessageConsumer<T> ret = io.vertx.rxjava.core.eventbus.MessageConsumer.newInstance(delegate.consumer(address, new Handler<io.vertx.core.eventbus.Message<T>>() { public void handle(io.vertx.core.eventbus.Message<T> event) { handler.handle(io.vertx.rxjava.core.eventbus.Message.newInstance(event, io.vertx.lang.rx.TypeArg.unknown())); } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }