public class ListenerVertx
extends io.nem.sdk.infrastructure.ListenerBase
implements io.nem.sdk.infrastructure.Listener
Listener.| Constructor and Description |
|---|
ListenerVertx(io.vertx.core.http.HttpClient httpClient,
java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close webSocket connection
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
open() |
protected void |
subscribeTo(java.lang.String channel) |
protected io.nem.sdk.model.blockchain.BlockInfo |
toBlockInfo(java.lang.Object blockInfoDTO) |
protected io.nem.sdk.model.transaction.Transaction |
toTransaction(java.lang.Object transactionInfo) |
aggregateBondedAdded, aggregateBondedRemoved, confirmed, cosignatureAdded, getJsonHelper, getMessageSubject, getUid, handle, newBlock, onNext, setUid, status, transactionFromAddress, unconfirmedAdded, unconfirmedRemovedpublic ListenerVertx(io.vertx.core.http.HttpClient httpClient,
java.lang.String url)
httpClient - the http client instance.url - of the hostpublic java.util.concurrent.CompletableFuture<java.lang.Void> open()
open in interface io.nem.sdk.infrastructure.ListenerCompletableFuture that resolves when the websocket connection is openedprotected io.nem.sdk.model.blockchain.BlockInfo toBlockInfo(java.lang.Object blockInfoDTO)
toBlockInfo in class io.nem.sdk.infrastructure.ListenerBaseprotected io.nem.sdk.model.transaction.Transaction toTransaction(java.lang.Object transactionInfo)
toTransaction in class io.nem.sdk.infrastructure.ListenerBasepublic void close()
close in interface io.nem.sdk.infrastructure.Listenerclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected void subscribeTo(java.lang.String channel)
subscribeTo in class io.nem.sdk.infrastructure.ListenerBase