Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [EnsLib] >  [PubSub] >  [RoutingOperation]
Private  Storage   

class EnsLib.PubSub.RoutingOperation extends Ens.BusinessOperation

Base class for message routing operations

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 2


Summary

This is a Business Operation class.

RequestResponse
EnsLib.PubSub.Request EnsLib.PubSub.Response

Properties
%AlertStartTime %ConfigName %ConfigQueueName %LastActionTime
%LastHandledTime %LastReportedError %QuitTask %RequestHeader
%SessionId %SuperSession %WarnedLatest %isShadow
Adapter AlertGroups AlertOnError AlertRetryGracePeriod
ArchiveIO BusinessPartner DeferResponse FailureTimeout
IOLogEntry InactivityTimeout NoFailWhileDisconnected QueueCountAlert
QueueWaitAlert ReplyCodeActions Retry RetryCount
RetryInterval SendSuperSession SuspendMessage ThrottleDelay

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OnClose %OnNew
%OriginalNamespace %PackageName %RemoveFromSaveSet %SerializeObject
%SetModified %SuperSessionSet %ValidateObject AdapterName
AssignOneSetting CloseIOLogEntry DeferResponse EnumerateSettingsClose
EnumerateSettingsExecute EnumerateSettingsFetch GenerateSuperSession GetDeferredResponseToken
GetMessageList GetMsgHdrRequestKey GetProductionSettingValue GetProductionSettings
GetPropertyConnections GetSettings GetShadowInstance IncludeSuperSession
NewIOLogEntry OnError OnFailureTimeout OnGenerateSuperSession
OnGetConnections OnGetReplyAction OnInit OnKeepalive
OnMessage OnMonitor OnProductionStart OnProductionStop
OnRoutingRequest OnTearDown QueueName RoutingHandler
SaveIOLogEntry SendAlert SendDeferredResponse SendRequestAsync
SendRequestSync

Subclasses
EnsLib.PubSub.PubSubOperation

Parameters

• parameter INVOCATION = "InProc";
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


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.