Class ServicePublisher
- All Implemented Interfaces:
MutinyDelegate
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate) ServicePublisher(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.servicediscovery.spi.ServicePublisherinthashCode()static ServicePublishernewInstance(io.vertx.servicediscovery.spi.ServicePublisher arg) io.smallrye.mutiny.Uni<io.vertx.servicediscovery.Record>publish(io.vertx.servicediscovery.Record record) Publishes a record.io.vertx.servicediscovery.RecordpublishAndAwait(io.vertx.servicediscovery.Record record) Blocking variant ofpublish(Record).voidpublishAndForget(io.vertx.servicediscovery.Record record) Variant ofpublish(Record)that ignores the result of the operation.toString()io.smallrye.mutiny.Uni<Void>Un-publishes a record.Blocking variant ofunpublish(String).voidVariant ofunpublish(String)that ignores the result of the operation.io.smallrye.mutiny.Uni<io.vertx.servicediscovery.Record>update(io.vertx.servicediscovery.Record record) Updates an existing record.io.vertx.servicediscovery.RecordupdateAndAwait(io.vertx.servicediscovery.Record record) Blocking variant ofupdate(Record).voidupdateAndForget(io.vertx.servicediscovery.Record record) Variant ofupdate(Record)that ignores the result of the operation.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ServicePublisher
public ServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate) -
ServicePublisher
-
-
Method Details
-
getDelegate
public io.vertx.servicediscovery.spi.ServicePublisher getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
publish
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.servicediscovery.Record> publish(io.vertx.servicediscovery.Record record) Publishes a record.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
record- the record- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
publishAndAwait
public io.vertx.servicediscovery.Record publishAndAwait(io.vertx.servicediscovery.Record record) Blocking variant ofpublish(Record).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
record- the record- Returns:
- the Record instance produced by the operation.
-
publishAndForget
public void publishAndForget(io.vertx.servicediscovery.Record record) Variant ofpublish(Record)that ignores the result of the operation.This method subscribes on the result of
publish(Record), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frompublish(Record)but you don't need to compose it with other operations.- Parameters:
record- the record
-
unpublish
Un-publishes a record.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
id- the registration id- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
unpublishAndAwait
Blocking variant ofunpublish(String).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
id- the registration id- Returns:
- the Void instance produced by the operation.
-
unpublishAndForget
Variant ofunpublish(String)that ignores the result of the operation.This method subscribes on the result of
unpublish(String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromunpublish(String)but you don't need to compose it with other operations.- Parameters:
id- the registration id
-
update
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.servicediscovery.Record> update(io.vertx.servicediscovery.Record record) Updates an existing record.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
record- the record- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
updateAndAwait
public io.vertx.servicediscovery.Record updateAndAwait(io.vertx.servicediscovery.Record record) Blocking variant ofupdate(Record).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
record- the record- Returns:
- the Record instance produced by the operation.
-
updateAndForget
public void updateAndForget(io.vertx.servicediscovery.Record record) Variant ofupdate(Record)that ignores the result of the operation.This method subscribes on the result of
update(Record), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromupdate(Record)but you don't need to compose it with other operations.- Parameters:
record- the record
-
newInstance
-