|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRequest
Defines contract for the Request handler.
Instance of IRequest
is returned by
IConnection.prepareRequest(org.otfeed.protocol.ICommand)
metod.
submit()
the asynchronous request,
to cancel()
it or to block
till request is complete.
Implementations must be thread-safe. All implementation supplied by org.otfeed
are thread-safe.
Method Summary | |
---|---|
void |
cancel()
Cancels the request. |
OTError |
getError()
Returns error. |
boolean |
isCompleted()
Returns request completion status. |
void |
submit()
Submits the request. |
void |
waitForCompletion()
Waits for request to complete (indefinetely). |
boolean |
waitForCompletion(long millis)
Waits for request to complete. |
Method Detail |
---|
void submit()
void cancel()
boolean isCompleted()
error
property to see whether
completion was normal or an error has occured.
OTError getError()
boolean waitForCompletion(long millis)
millis
- timeout value in millis.
void waitForCompletion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |