public class Queue extends TieApplicationObject
You need adimin privilege to create Queue instances. Queue class instances are used to represent instances of AQ in the system. Creation, deletion, and modifying the instances of this class do not affect the underlying AQ. AQ admin tools and api needs to be used to deal with AQ instances. Refer to AQ documentation for information about how to craete, delete, modify AQ instances.
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
MESSAGEPROCESSORCLASSNAME_ATTRIBUTE
The message processor of this Queue (e.g. oracle.ifs.adk.queue.IfsMessageProcessor)
|
static String |
PAYLOADTYPE_ATTRIBUTE
The payload of this Queue (e.g.
|
static String |
TYPEMAP_ATTRIBUTE
The type map of the queue.
|
static String |
UNIQUENAME_ATTRIBUTE
The name of this Queue (e.g.
|
ACL_ATTRIBUTE, CREATEDATE_ATTRIBUTE, CREATOR_ATTRIBUTE, DELETOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, EXPIRATIONDATE_ATTRIBUTE, FAMILY_ATTRIBUTE, FLAG_CATEGORY_EXISTS, FLAG_CONFIGURATIONCATEGORY_EXISTS, FLAG_MARKED, FLAG_NOINFERIOR, FLAG_NOSELECT, FLAG_NTFS_ARCHIVE, FLAG_NTFS_HIDDEN, FLAG_NTFS_READONLY, FLAG_NTFS_SYSTEM, FLAG_UNMARKED, FLAGS_ATTRIBUTE, LASTMODIFIER_ATTRIBUTE, LASTMODIFYDATE_ATTRIBUTE, LOCKENTRIES_ATTRIBUTE, LOCKOBJECT_ATTRIBUTE, NAME_ATTRIBUTE, OWNER_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PRIMARYPARENTFOLDER_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE, RESOLVEDPUBLICOBJECT_ATTRIBUTE, SECURINGPUBLICOBJECT_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
Queue(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a Queue object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected static Queue |
constructQueue(LibrarySession sess,
S_LibraryObjectData data)
constructQueue FixmeJavadocMethod
|
protected static Vector |
constructQueueVector(LibrarySession sess,
Vector vector)
constructQueueVector - FixmeJavadocMethod
|
oracle.sql.ORAData |
dequeue(String subscriberName)
Dequeues a message.
|
oracle.sql.ORAData |
dequeueFromExceptionQueue()
Dequeues a message from the default exception queue.
|
void |
enqueue(oracle.sql.ORAData message)
Enqueues a message.
|
void |
enqueue(oracle.sql.ORAData message,
String correlation)
Enqueues a message.
|
static Queue[] |
findAll(LibrarySession session)
Returns the set of defined Queues.
|
static Queue |
findByName(LibrarySession session,
String name)
Returns the a Queue matching the specified name.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
Queue instances by uniquename.
|
String |
getMessageProcessorClassName()
Returns the name of message processor class of the queue instance.
|
String |
getPayloadType()
Returns the payload type of the queue instance.
|
PropertyBundle |
getTypeMap()
Returns the PropertyBundle used by this Queue to map message types.
|
void |
setMessageProcessorClassName(String messageProcessorClassName)
Sets the meaasge processor class of the Queue instance.
|
void |
setPayloadType(String payloadType)
Sets the payload type of the Queue instance.
|
protected static Queue |
vectorQueueElement(Vector vector,
int index)
Returns a Queue from a vector of Queues
|
protected static Queue[] |
vectorToQueueArray(Vector vector)
Constructs an array of Queue's from a vector of Queues
|
auditPublicObjectLocked, auditPublicObjectUnlocked, auditUpdated, constructApplicationObject, constructApplicationObjectVector, isValidEventType, postCreate, preFree, reportApplicationObjectCreated, reportApplicationObjectFreed
addAccess, addAttachment, addCategory, addFlags, addMessageList, addRelationship, canAcquireManualLock, canReleaseDavLock, canReleaseLock, canReleaseManualLock, capabilities, checkAuditViewCapability, checkCapabilities, checkCapability, checkEffectiveAccess, checkEffectiveAccess, checkLockAccess, checkParentFolderCapability, checkVersioned, clearFlags, constructPublicObject, constructPublicObjectArray, constructPublicObjectVector, containsLockEntry, copy, coreAutoFolderingEnabled, createCategories, createDedicatedPolicyPropertyBundle, delete, deriveEffectiveAccessLevel, findAttachmentRelation, findOrAddActivityRecord, findOrAddActivityRecord, findOrAddActor, findOrAddActor, findOrAddMessageList, findOrAddMessageList, free, getAcl, getActivityRecord, getActor, getAllFolderPaths, getAllFolderPaths, getAllFolderPaths, getAnyFolderPath, getAnyFolderPath, getAnyFolderPath, getAttachmentRelation, getAttachmentRelations, getAttachments, getCapabilities, getCategories, getCategories, getCategories, getCategories, getCategories, getCategory, getConsumedStorage, getCreateDate, getCreator, getDefaultAccessLevel, getDefinitionForSimplePropertyUpdates, getDeletor, getDescription, getEffectiveAccessLevel, getEffectiveAccessLevel, getExpirationDate, getFamily, getFirstCategory, getFirstVersion, getFlags, getFolderReferences, getFolderReferences, getFolderReferencesSortSpecification, getLastModifier, getLastModifyDate, getLastVersion, getLeftwardRelationshipObjects, getLeftwardRelationshipObjects, getLeftwardRelationships, getLeftwardRelationships, getLeftwardRelationshipsCount, getLeftwardRelationshipsCount, getLinks, getLockEntries, getLockEntries, getLockObject, getLockRestrictions, getLockTypeAuditProperties, getMessageList, getNextVersion, getOwner, getPolicyBundle, getPolicyLists, getPreviousVersion, getPrimaryFolderPath, getPrimaryParentFolder, getPrimaryParentFolder, getRelations, getReservationComment, getReservationDate, getReservor, getResolvedPublicObject, getRestrictingLockEntries, getRightwardRelationshipObjects, getRightwardRelationshipObjects, getRightwardRelationships, getRightwardRelationships, getSecuringPublicObject, getSingletonVersionDescription, getVersionNumber, getVersions, getVersionSeries, getWorkingCopy, grantAccess, handleCopy, handleCreate, handleUnlockAll, hasActivityRecord, hasActor, hasAttachmentRelation, hasCategories, hasCategory, hasConfigurationCategories, hasMessageList, hasNameAttribute, hasPropertyBundleAttribute, isAttachment, isDeleted, isLatestVersion, isLocked, isLockingSupported, isOwner, isReserved, isReservedByCurrentUser, isVersionable, isVersioned, isWorkingCopy, listLeftwardRelationships, listRightwardRelationships, lock, lock, lock, lock, newVersion, postCopy, postSecurityChangedEvent, postUpdate, preCopy, preCreate, preUpdate, putPolicy, reassociateLinks, removeAllPolicies, removeAttachment, removePolicy, removePolicy, removeRelationship, reserveNext, resetFolderReferences, resolveFolderReferenceSortSpecification, revokeAccess, revokeAllAccess, setAcl, setDescription, setExpirationDate, setFlags, setFolderReferencesSortSpecification, setLockEntries, setLockEntrySecurity, setOwner, setOwnerByName, setPolicyBundle, setPolicyLists, setSecuringPublicObject, toPublicObjectArray, undelete, unlock, unlock, unlockAll, unReserve, updateFlags, updateLock, vectorPublicObjectElement, vectorToPublicObjectArray, verifyAddRelationshipCapability, verifyCapabilities, verifyCapability, verifyDeleteCapability, verifyLockCapability, verifyRemoveRelationshipCapability, verifyUnlockCapability, verifyVersionSeries
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String UNIQUENAME_ATTRIBUTE
public static final String PAYLOADTYPE_ATTRIBUTE
public static final String MESSAGEPROCESSORCLASSNAME_ATTRIBUTE
public static final String TYPEMAP_ATTRIBUTE
protected Queue(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibSessionid
- the object IDclassId
- int array version of the object IDdata
- the object's dataIfsException
- if operation fails.public String getPayloadType() throws IfsException
IfsException
- on failurepublic void setPayloadType(String payloadType) throws IfsException
payloadType
- payload type of the queue instanceIfsException
- on failurepublic String getMessageProcessorClassName() throws IfsException
IfsException
- on failurepublic void setMessageProcessorClassName(String messageProcessorClassName) throws IfsException
messageProcessorClassName
- name of the message processor classIfsException
- on failurepublic PropertyBundle getTypeMap() throws IfsException
IfsException
- if the operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static Queue[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static Queue findByName(LibrarySession session, String name) throws IfsException
Queue names are case insensitive.
session
- the session contextname
- the Queue nameIfsException
- if the operation fails.public void enqueue(oracle.sql.ORAData message) throws IfsException
message
- message to be enqueuedIfsException
- if the operation failspublic void enqueue(oracle.sql.ORAData message, String correlation) throws IfsException
message
- message to be enqueuedcorrelation
- correlation for the messageIfsException
- if the operation failspublic oracle.sql.ORAData dequeue(String subscriberName) throws IfsException
If a transaction that contained the call to this method is rolled back for any reason, RETRY_COUNT parameter of the message is incremented. Such a message will become available for dequeue after a period specified by the RETRY_DELAY parameter of the underlying AQ instance. Repeated rollbacks can cause the value of message's RETRY_COUNT property to go higher than the MAX_RETRY_COUNT property of the AQ instance. At that point, the message cannot be dequeued anymore and is moved to the exception queue. Use dequeueMessageFromExceptionQueue() method to get messages from an exception queue.
subscriberName
- subscriber dequeueing the messageIfsException
- if the operation failspublic oracle.sql.ORAData dequeueFromExceptionQueue() throws IfsException
This method queries the database to find the queue table name of the regular queue and then constructs the name of the exception queue. The name of the default exception queue is has the pattern AQ$_<Queue_Table_Name>_E, where <Queue_Table_Name> is the queue table for the regular queue.
If you rollback a transaction that contained a call to this method, then the message will simply be put back on the exception queue. The number of attempts to dequeue a message from an exception is not bound by the MAX_RETRY_COUNT.
IfsException
- if the operation failsprotected static Vector constructQueueVector(LibrarySession sess, Vector vector) throws IfsException
sess
- FixmeJavadocParamvector
- FixmeJavadocParamIfsException
- if operation fails.protected static Queue constructQueue(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- FixmeJavadocParamdata
- FixmeJavadocParamIfsException
- if operation fails.protected static Queue[] vectorToQueueArray(Vector vector)
vector
- FixmeJavadocParamCopyright © 2023. All rights reserved.