Skip to main content

EnsLib.PubSub.RoutingOperation

class EnsLib.PubSub.RoutingOperation extends Ens.BusinessOperation

Base class for message routing operations

Method Inventory

Parameters

parameter INVOCATION = InProc;
Inherited description: 2 modes: Queue, InProc

Methods

method OnRoutingRequest(pRequest As EnsLib.PubSub.Request, Output pResponse As EnsLib.PubSub.Response) as %Status
This method is implemented by a subclass to process the actual message routing request.
The code to return a message looks like this:
  	// construct routing response
  	Set pResponse = ##class(EnsLib.PubSub.Response).%New()
  	
  	Set pTarget = ##class(EnsLib.PubSub.Target).%New(pResponse)
  	Set pTarget.Target = "Operation1"
  	Do pResponse.TargetList.Insert(pTarget)
  
method RoutingHandler(pRequest As EnsLib.PubSub.Request, Output pResponse As EnsLib.PubSub.Response) as %Status
Process an incoming RoutingRequest

Inherited Members

Inherited Properties

Inherited Methods

Subclasses

FeedbackOpens in a new tab