|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.request.Request
public abstract class Request
The abstract base class for all classes representing requests to be executed against a RepositoryConnection
.
Method Summary | |
---|---|
void |
cancel()
Cancel this request. |
Throwable |
getError()
Get the error associated with this request, if there is such an error. |
boolean |
hasError()
Return whether there is an error associated with this request |
boolean |
isCancelled()
Check whether this request has been cancelled. |
abstract boolean |
isReadOnly()
Return whether this request only reads information. |
void |
setError(Throwable error)
Set the error for this request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setError(Throwable error)
error
- the error to be associated with this request, or null if this request is to have no errorpublic boolean hasError()
public Throwable getError()
public boolean isCancelled()
true
.
For example, if processing is almost complete, it may be appropriate to simply finish processing the request.
This method is safe to be called by different threads.
public void cancel()
cancellation flag
is set, and any current or
future processing of the request may be affected by the cancellation. (Note however, that processors may choose to not
respect this request.)
This method is safe to be called by different threads.
public abstract boolean isReadOnly()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |