Ens.Queue

class Ens.Queue

Method Inventory

Methods

classmethod AbortItem(pQueueName As %String = "", pPriority As %Integer = 0, pIndex As %Integer = 0) as %Status [ Language = objectscript ]
classmethod AbortQueue(pQueueName As %String = "") as %Status [ Language = objectscript ]
classmethod ClearEventDevice(pQueueName, pOldDevice) as %Status [ Language = objectscript ]
classmethod Create(pQueueName As %String = $job) as %Status [ Language = objectscript ]
classmethod DeQueue(pQueueName As %String = $job, ByRef pMsg As Ens.MessageHeader, pTimeout As %Numeric = -1, Output pIsTimedOut As %Boolean, pHonorQuiescent As %Boolean = 0, pMinPriority As %Integer = $$$eMessagePriorityAsync) as %Status [ Language = objectscript ]
classmethod Delete(pQueueName As %String, pJob As %String) as %Status [ Language = objectscript ]
classmethod DeleteAllQueuesForJob(pJob As %String = $Job) as %Status [ Language = objectscript ]
classmethod EnQueue(pMsg As Ens.MessageHeader, pReverseOrder As %Boolean = 0) as %Status [ Language = objectscript ]
classmethod EnumerateClose(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod EnumerateExecute(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod EnumerateFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod EnumerateItemClose(ByRef qHandle As %Binary) as %Status [ Language = objectscript ]
classmethod EnumerateItemExecute(ByRef qHandle As %Binary, pQueueName As %String, pPriorKey As %String = "") as %Status [ Language = objectscript ]
classmethod EnumerateItemFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status [ Language = objectscript ]
classmethod EventName(pQueueName As %String) as %String [ Language = objectscript ]
classmethod Exists(pQueueName As %String = $job) as %Boolean [ Language = objectscript ]
classmethod ExistsInQueue(pMsg As Ens.MessageHeader = "") as %Boolean [ Language = objectscript ]
classmethod GetCount(pQueueName As %String) as %Integer [ Language = objectscript ]
Return the count of messages in the named queue. Return empty string if queue does not exist.
classmethod GetJobList(pJobList) [ Language = objectscript ]
classmethod PutBackToQueue(pMsg As Ens.MessageHeader) as %Status [ Language = objectscript ]
classmethod SetEventDevice(pQueueName, pDevice="") as %Status [ Language = objectscript ]
classmethod SignalAllJobs() as %Status [ Language = objectscript ]
classmethod deleteEvent(pEventName As %String) as %Status [ Language = objectscript ]

Queries

query Enumerate()
Selects Name As %String, Count As %Integer, Created As %String
List the known queues and their current counters
query EnumerateItem(QueueName As %String, PriorKey As %String = "")
Selects Priority As %Integer, Index As %Integer, MessageId As %String
PriorKey is a concatenated string that consists of the Priority, "|", and the Index.
Feedback