ServiceBusInterface Class Reference

#include <network_service_discovery.h>

详细描述

This class represents an access point to the service discovery bus. It manages announcements and subscriptions.

Classes

struct   参数

公共成员函数

MAXON_METHOD Result < void >  开始 (const 参数 &props)
MAXON_METHOD Result < void >  开始 ()
MAXON_METHOD void  Stop ()
MAXON_METHOD Result < ServiceAnnouncementRef >  Announce (const ServiceAnnouncementRequestRef &request)
MAXON_METHOD Result < ServiceSubscriptionRef >  Subscribe (const ServiceSubscriptionRequestRef &request)
MAXON_METHOD Uuid   GetLocalUuid () const
MAXON_METHOD JobQueueRef   GetSyncQueue () const

静态公共成员函数

static MAXON_METHOD ServiceBusInterface Alloc ( MAXON_SOURCE_LOCATION_DECLARATION )

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( ServiceBusInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.servicebus")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ServiceBusInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.servicebus"   
)
private

◆  Alloc()

static MAXON_METHOD ServiceBusInterface * Alloc ( MAXON_SOURCE_LOCATION_DECLARATION   )
static

◆  Start() [1/2]

MAXON_METHOD Result <void> Start ( const 参数 props )

Starts the service bus with custom parameters. After it has been started successfully, the bus broadcasts announcements and listens for subscriptions on the local network.

◆  Start() [2/2]

MAXON_METHOD Result <void> Start ( )

Starts the service bus with default parameters.

◆  Stop()

MAXON_METHOD void Stop ( )

Stops the service bus if it was running.

◆  Announce()

MAXON_METHOD Result <ServiceAnnouncementRef> Announce ( const ServiceAnnouncementRequestRef &  request )

Registers a new announcement at this service bus endpoint.

◆  Subscribe()

MAXON_METHOD Result <ServiceSubscriptionRef> Subscribe ( const ServiceSubscriptionRequestRef &  request )

Registers a new subscription at this service bus endpoint.

◆  GetLocalUuid()

MAXON_METHOD Uuid GetLocalUuid ( ) const

Returns the UUID that identifies this service bus endpoint.

◆  GetSyncQueue()

MAXON_METHOD JobQueueRef GetSyncQueue ( ) const

Returns the job queue used to synchronize events on this service bus.