public class ServiceCall extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REALTIME
The realtime constant.
|
static String |
TIMEOUT
The timeout constant.
|
Modifier and Type | Method and Description |
---|---|
IComponentIdentifier |
getCaller()
Get the caller component.
|
static ServiceCall |
getCurrentInvocation()
Get the service call instance corresponding
to the current execution context.
|
static ServiceCall |
getInvocation()
Set the properties of the next invocation.
|
static ServiceCall |
getInvocation(Map<String,Object> props)
Set the properties of the next invocation.
|
Map<String,Object> |
getProperties()
Get a property.
|
Object |
getProperty(String name)
Get a property.
|
Boolean |
getRealtime()
Get the realtime flag.
|
long |
getTimeout()
Get the timeout value.
|
boolean |
isRealtime()
Get the realtime flag.
|
void |
setProperty(String name,
Object val)
Set a property.
|
void |
setRealtime(Boolean realtime)
Set the realtime property.
|
void |
setTimeout(long to)
Set the timeout.
|
public static final String TIMEOUT
public static final String REALTIME
public static ServiceCall getCurrentInvocation()
public static ServiceCall getInvocation()
timeout
- The timeout.realtime
- The realtime flag.public static ServiceCall getInvocation(Map<String,Object> props)
timeout
- The timeout.realtime
- The realtime flag.public IComponentIdentifier getCaller()
public long getTimeout()
public void setTimeout(long to)
to
- The timeout.public Boolean getRealtime()
public void setRealtime(Boolean realtime)
public boolean isRealtime()
public Object getProperty(String name)
name
- The property name.public void setProperty(String name, Object val)
name
- The property name.val
- The property value.Copyright © 2013. All Rights Reserved.