public abstract class AbstractCallback extends Object implements Callback
DEFAULT_TIMEOUT, ORDER_COMPARATOR
Constructor and Description |
---|
AbstractCallback() |
AbstractCallback(int order) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
buildRequestAttributes()
Build the request attribute map
|
Map<String,String> |
buildResponseAttributes()
Build the response attribute map
|
void |
cancel() |
int |
getOrder() |
protected void |
injectRequestAttributes(Map<String,String> request) |
protected void |
injectResponseAttributes(Map<String,String> response)
Inject values for the response message
|
boolean |
isCanceled() |
protected Integer |
parseInteger(Map<String,String> attributes,
String key,
Integer defaultValue)
Return an integer from the attributes
|
void |
parseRequestAttributes(Map<String,String> attributes) |
void |
parseResponseAttributes(Map<String,String> attributes) |
public AbstractCallback()
public AbstractCallback(int order)
public boolean isCanceled()
isCanceled
in interface Callback
public Map<String,String> buildRequestAttributes()
Only non-null values and keys may be inserted!
buildRequestAttributes
in interface Callback
public Map<String,String> buildResponseAttributes()
Only non-null values and keys may be inserted!
buildResponseAttributes
in interface Callback
protected void injectResponseAttributes(Map<String,String> response)
Only non-null values and keys may be inserted!
response
- the result map which should be filledpublic void parseRequestAttributes(Map<String,String> attributes)
parseRequestAttributes
in interface Callback
public void parseResponseAttributes(Map<String,String> attributes)
parseResponseAttributes
in interface Callback
protected Integer parseInteger(Map<String,String> attributes, String key, Integer defaultValue)
attributes
- key
- defaultValue
- Exception
- in case the value was set but could not be parsedCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.