Interface QueueConstrainer
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidConstrainer, OsidObject, OsidRule
A QueueConstrainer manages the constraints of a Queue .
-
Method Summary
Modifier and TypeMethodDescriptiongetQueueConstrainerRecord(Type queueConstrainerRecordType) Gets the queue constrainer record corresponding to the givenQueueConstrainerrecordType.Gets the poolIdsfor the required provisions.Gets the pools for the required provisions.longGets the size limit of the queue.booleanTests if this queue limits the number of requests.booleanTests if a provision must exist before entering this queue.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
hasSizeLimit
boolean hasSizeLimit()Tests if this queue limits the number of requests.- Returns:
trueif a queue size limit is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSizeLimit
long getSizeLimit()Gets the size limit of the queue.- Returns:
- the size limit
- Throws:
IllegalStateException-hasSizeLimit()isfalse- Compliance:
mandatory- This method must be implemented.
-
requiresProvisions
boolean requiresProvisions()Tests if a provision must exist before entering this queue.- Returns:
trueif a provision is required,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequiredProvisionPoolIds
IdList getRequiredProvisionPoolIds()Gets the poolIdsfor the required provisions.- Returns:
- the
Idsof the pools - Throws:
IllegalStateException-requiresProvisions()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRequiredProvisionPools
Gets the pools for the required provisions.- Returns:
- the pools
- Throws:
IllegalStateException-requiresProvisions()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getQueueConstrainerRecord
QueueConstrainerRecord getQueueConstrainerRecord(Type queueConstrainerRecordType) throws OperationFailedException Gets the queue constrainer record corresponding to the givenQueueConstrainerrecordType. This method ie used to retrieve an object implementing the requested record. ThequeueConstrainerRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(queueConstrainerRecordType)is true.- Parameters:
queueConstrainerRecordType- the type of queue constrainer record to retrieve- Returns:
- the queue constrainer record
- Throws:
NullArgumentException-queueConstrainerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(queueConstrainerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-