public interface IRequest
Modifier and Type | Interface and Description |
---|---|
static interface |
IRequest.IListener
Listener interface to get progress information during request execution
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
call() |
IResult |
execute()
Performs a synchronous message transaction with the underlying native process.
|
IRequest.IListener |
listener() |
IRequest |
listener(IRequest.IListener listener)
Sets the progress listener of this request
|
NCMap |
params() |
IRequest |
params(NCMap params) |
INativeService |
processPool()
Deprecated.
use
service() instead |
IRequest |
put(java.lang.String name,
boolean value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
java.nio.ByteBuffer value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
double value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
INCExternalizable value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
int value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
long value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
NCType value)
Add a request parameter
|
IRequest |
put(java.lang.String name,
java.lang.String value)
Add a request parameter
|
int |
retries() |
IRequest |
retries(int retries)
Sets the maximum number of retries for this request.
|
INativeService |
service() |
int |
timeout() |
IRequest |
timeout(int timeout)
Sets the timeout of this request in milliseconds
|
@Deprecated INativeService processPool()
service()
insteadINativeService service()
java.lang.String call()
NCMap params()
IRequest params(NCMap params)
params
- NativeService parameters dictionaryint timeout()
IRequest timeout(int timeout)
timeout
- timeout of this request in milliseconds; 0 == no timeoutint retries()
IRequest retries(int retries)
retries
- maximum number of retries for this request; 0 == do not retryIRequest.IListener listener()
IRequest listener(IRequest.IListener listener)
listener
- progress listener of this requestIResult execute() throws NativeCommException
The method then blocks until a response is received or the request times out.
The response is returned to the caller.
NativeCommException
- on failureIRequest put(java.lang.String name, NCType value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, INCExternalizable value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, java.lang.String value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, boolean value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, int value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, long value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, double value)
name
- parameter namevalue
- parameter valueIRequest put(java.lang.String name, java.nio.ByteBuffer value)
name
- parameter namevalue
- parameter value"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"