Package io.vertx.reactivex.core.eventbus
Class MessageProducer<T>
- java.lang.Object
-
- io.vertx.reactivex.core.eventbus.MessageProducer<T>
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MessageProducer>
__TYPE_ARG
TypeArg<T>
__typeArg_0
-
Constructor Summary
Constructors Constructor Description MessageProducer(MessageProducer delegate)
MessageProducer(Object delegate, TypeArg<T> typeArg_0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
address()
void
close()
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completesvoid
close(Handler<AsyncResult<Void>> handler)
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completesMessageProducer<T>
deliveryOptions(DeliveryOptions options)
Update the delivery options of this producer.boolean
equals(Object o)
MessageProducer
getDelegate()
int
hashCode()
static <T> MessageProducer<T>
newInstance(MessageProducer arg)
static <T> MessageProducer<T>
newInstance(MessageProducer arg, TypeArg<T> __typeArg_T)
io.reactivex.Completable
rxClose()
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completesio.reactivex.Completable
rxWrite(T body)
Write a message to the event-bus, either sending or publishing.String
toString()
void
write(T body)
Write a message to the event-bus, either sending or publishing.void
write(T body, Handler<AsyncResult<Void>> handler)
Write a message to the event-bus, either sending or publishing.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MessageProducer> __TYPE_ARG
-
-
Constructor Detail
-
MessageProducer
public MessageProducer(MessageProducer delegate)
-
-
Method Detail
-
getDelegate
public MessageProducer getDelegate()
-
deliveryOptions
public MessageProducer<T> deliveryOptions(DeliveryOptions options)
Update the delivery options of this producer.- Parameters:
options
- the new options- Returns:
- this producer object
-
address
public String address()
- Returns:
- The address to which the producer produces messages.
-
write
public void write(T body, Handler<AsyncResult<Void>> handler)
Write a message to the event-bus, either sending or publishing.- Parameters:
body
- the message bodyhandler
- the handler called when the message has been successfully or failed to be written, this is not a delivery guarantee
-
write
public void write(T body)
Write a message to the event-bus, either sending or publishing.- Parameters:
body
- the message body
-
rxWrite
public io.reactivex.Completable rxWrite(T body)
Write a message to the event-bus, either sending or publishing.- Parameters:
body
- the message body- Returns:
-
close
public void close(Handler<AsyncResult<Void>> handler)
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completes- Parameters:
handler
-
-
close
public void close()
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completes
-
rxClose
public io.reactivex.Completable rxClose()
Same asclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with anhandler
called when the operation completes- Returns:
-
newInstance
public static <T> MessageProducer<T> newInstance(MessageProducer arg)
-
newInstance
public static <T> MessageProducer<T> newInstance(MessageProducer arg, TypeArg<T> __typeArg_T)
-
-