MessageRouterInterface

interface MessageRouterInterface : MessageSender

This specifies the interface to manage a connection over some medium to DeviceGateway.

Functions

Link copied to clipboard
abstract fun addOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Link copied to clipboard
abstract fun getConnectionChangedReason(): ConnectionStatusListener.ChangedReason

Get the connection ChangedReason.

Link copied to clipboard
abstract fun getConnectionStatus(): ConnectionStatusListener.Status

Get the connection status.

Link copied to clipboard
abstract fun handoffConnection(    protocol: String,     hostname: String,     address: String,     port: Int,     retryCountLimit: Int,     connectionTimeout: Int,     charge: String)

handoff connection from SystemCapability

Link copied to clipboard
abstract fun isStartReceiveServerInitiatedDirective(): Boolean

Return whether the connection-oriented has been started.

Link copied to clipboard
abstract fun newCall(request: MessageRequest, headers: Map<String, String>?): Call
Link copied to clipboard
abstract fun removeOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Link copied to clipboard
abstract fun resetConnection(description: String?)

Resets the connection immediately.

Link copied to clipboard
abstract fun setObserver(observer: MessageRouterObserverInterface)

Set the observer to this object.

Link copied to clipboard
abstract fun shutdown()

Shutdown network manager

Link copied to clipboard
abstract fun startReceiveServerInitiatedDirective(onCompletion: () -> Unit?): Boolean

Start the connection-oriented feature.

Link copied to clipboard
abstract fun stopReceiveServerInitiatedDirective()

Stop the connection-oriented feature.

Inheritors

Link copied to clipboard