public class ServiceCall extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CAUSE
The cause constant.
|
static String |
DEFTIMEOUT |
static String |
INHERIT
The inherit constant.
|
static String |
MONITORING
The monitoring constant.
|
static String |
REALTIME
The realtime constant.
|
static String |
TIMEOUT
The timeout constant.
|
Modifier and Type | Method and Description |
---|---|
IComponentIdentifier |
getCaller()
Get the caller component.
|
Cause |
getCause()
Get the cause.
|
static ServiceCall |
getCurrentInvocation()
Get the service call instance corresponding
to the current execution context.
|
static ServiceCall |
getLastInvocation()
Get the last service call instance corresponding
to the current execution context.
|
static ServiceCall |
getNextInvocation()
Get the invocation data for the next service call.
|
static ServiceCall |
getOrCreateNextInvocation()
Set the properties of the next invocation.
|
static ServiceCall |
getOrCreateNextInvocation(Map<String,Object> props)
Get or create the next servicecall for 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 |
hasUserTimeout()
Test if the user has set a timeout.
|
boolean |
isRealtime()
Get the realtime flag.
|
void |
setCause(Cause cause)
Set the cause.
|
void |
setProperty(String name)
Remove a property.
|
void |
setProperty(String name,
Object val)
Set a property.
|
void |
setRealtime(Boolean realtime)
Set the realtime property.
|
void |
setTimeout(long to)
Set the timeout.
|
String |
toString()
Get the string represntation.
|
public static final String TIMEOUT
public static final String DEFTIMEOUT
public static final String REALTIME
public static final String CAUSE
public static final String MONITORING
public static final String INHERIT
public static ServiceCall getNextInvocation()
public static ServiceCall getCurrentInvocation()
public static ServiceCall getLastInvocation()
public static ServiceCall getOrCreateNextInvocation()
timeout
- The timeout.realtime
- The realtime flag.public static ServiceCall getOrCreateNextInvocation(Map<String,Object> props)
timeout
- The timeout.realtime
- The realtime flag.public IComponentIdentifier getCaller()
public long getTimeout()
public boolean hasUserTimeout()
public void setTimeout(long to)
to
- The timeout.public Boolean getRealtime()
public void setRealtime(Boolean realtime)
public boolean isRealtime()
public Cause getCause()
public void setCause(Cause cause)
cause
- The cause.public Object getProperty(String name)
name
- The property name.public void setProperty(String name, Object val)
name
- The property name.val
- The property value.public void setProperty(String name)
name
- The property name.public Map<String,Object> getProperties()
name
- The property name.Copyright © 2013. All Rights Reserved.