abstract class AbstractNodeService : SingletonSerializeAsTokenAbstract superclass for services that a node can host, which provides helper functions.
| <init> |
AbstractNodeService(services: ServiceHubInternal)Abstract superclass for services that a node can host, which provides helper functions. |
| net |
val net: MessagingServiceInternal |
| services |
val services: ServiceHubInternal |
| addMessageHandler |
fun <Q : ServiceRequestMessage, R : Any> addMessageHandler(topic: String, handler: (Q) -> R, exceptionConsumer: (Message, Exception) -> Unit): MessageHandlerRegistrationRegister a handler for a message topic. In comparison to using net.addMessageHandler() this manages a lot of common boilerplate code. Exceptions are caught and passed to the provided consumer. If you just want a simple acknowledgement response with no content, use com.r3corda.core.messaging.Ack. fun <Q : ServiceRequestMessage, R : Any> addMessageHandler(topic: String, handler: (Q) -> R): MessageHandlerRegistrationRegister a handler for a message topic. In comparison to using net.addMessageHandler() this manages a lot of common boilerplate code. Exceptions are propagated to the messaging layer. If you just want a simple acknowledgement response with no content, use com.r3corda.core.messaging.Ack. |
| toToken |
open fun toToken(context: SerializeAsTokenContext): SerializationToken |
| AbstractNetworkMapService |
abstract class AbstractNetworkMapService : NetworkMapService, AbstractNodeServiceAbstracted out core functionality as the basis for a persistent implementation, as well as existing in-memory implementation. |