@JvmStatic @JvmOverloads fun open(vertx: Vertx, keyPair: KeyPair, localPort: Int, bindAddress: InetSocketAddress = InetSocketAddress(InetAddress.getLoopbackAddress(), localPort), enrSeq: Long = Instant.now().toEpochMilli(), bootstrapENRList: List<String> = emptyList(), enrStorage: ENRStorage = DefaultENRStorage(), coroutineContext: CoroutineContext = Dispatchers.Default): DiscoveryV5Service
(source)
Creates a new discovery service, generating the node ENR and configuring the UDP connector.
keyPair
- the key pair identifying the node running the service.
bindAddress
- the address to bind the node to.
enrSeq
- the sequence of the ENR of the node
bootstrapENRList
- the list of other nodes to connect to on bootstrap.
enrStorage
- the permanent storage of ENRs. Defaults to an in-memory store.
coroutineContext
- the coroutine context associated with the store.