public interface ITaskQueueReader
Copyright (c) SAP AG 2003
| Modifier and Type | Method and Description |
|---|---|
ITask |
get()
Removes the task at the top of the task queue and returns it.
|
ITask |
get(long timeout)
Removes the task at the top of the task queue and returns it.
|
String |
getNamespace()
Returns the namespace of this reader.
|
String |
getUser()
Returns the user of this reader.
|
boolean |
isEmpty()
Indicates if the queue still holds some tasks to process (and the
get-method will return a task. |
void |
setState(ITask task,
TaskState state)
Sets the task's state to a new state .
|
ITask |
top()
Returns the top elemet of the task queue.
|
ITask get() throws WcmException
The task' state (former set to NEW by a writer is set ACTIVE during this
operation.
WcmException - Exception raised in failure situationITask get(long timeout) throws WcmException
This method returns when a task is found in the queue or a timeout
delay is reached. The task' state (former set to NEW by a writer is set ACTIVE during this operation.
timeout - The timeout delay in ms. If timeout is 0 the
method behaves like get(). When set to a negative value it
will never timeout.WcmException - Exception raised in failure situationget()ITask top() throws WcmException
WcmException - exceptionvoid setState(ITask task, TaskState state) throws WcmException
ITask.getState()) for details.
Interactive users of the taskqueue service are only allowed to set the
state to TaskState.DONE and TaskState.ERROR. Other states
are set by the task queue service.
state - The state to set.task - The task to set the state.WcmException - Exception raised in failure situationboolean isEmpty()
get-method will return a task.String getUser()
String getNamespace()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice