Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / EnsLib.PubSub.RoutingOperation
Private  Storage   

EnsLib.PubSub.RoutingOperation


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 an Ensemble Business Operation class.

RequestResponse
EnsLib.PubSub.Request EnsLib.PubSub.Response

Properties
%ActionHint %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
%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OnClose
%OnNew %OriginalNamespace %PackageName %RemoveFromSaveSet
%SerializeObject %SetModified %SuperSessionSet %ValidateObject
AdapterName AssignOneSetting CloseIOLogEntry DeferResponse
EnumerateSettingsClose EnumerateSettingsExecute EnumerateSettingsFetch EvalInitialExpression
GenerateSuperSession GetDeferredResponseToken GetMessageList GetProductionSettingValue
GetProductionSettings GetPropertyConnections GetRequestClassList GetResponseClassList
GetSettings GetShadowInstance IncludeSuperSession MessageHandler
MessageHeaderHandler NewIOLogEntry OnError OnFailureTimeout
OnGenerateSuperSession OnGetConnections OnGetReplyAction OnInit
OnKeepalive OnMessage OnMonitor OnProductionStart
OnProductionStop OnRoutingRequest OnTask OnTearDown
QueueName RoutingHandler SaveIOLogEntry SendAlert
SendDeferredResponse SendRequestAsync SendRequestSync SendRequestSyncMultiple
acceptRequestAsync acceptRequestSync doReplyAction finalReplyAction
findCachedObject initConfig inprocRequest makeConnections
queueRequestAsync queueRequestSync

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