public abstract class AbstractIOAdapter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
The Cilia logger.
|
| Constructor and Description |
|---|
AbstractIOAdapter(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected Data |
callAndWait(Data data)
Send the data to the first mediator and wait for the reponse.
|
Data |
dispatchData(Data data) |
protected String |
generateKey(Data data)
Generate a key to track response.
|
Data |
invokeChain(Data data)
Invoke a Chain with the data as parammeter.
|
Object |
invokeChain(Object content) |
void |
receiveData(Data data) |
public AbstractIOAdapter(org.osgi.framework.BundleContext context)
public Data invokeChain(Data data) throws TimeoutException
data - Data to be passed to the chain.TimeoutExceptionpublic Object invokeChain(Object content) throws TimeoutException
content - TimeoutExceptionprotected Data callAndWait(Data data) throws TimeoutException
data - Data to send to the first mediator.TimeoutExceptionprotected String generateKey(Data data)
Data - the data use to generate the key, this key will be associated
to the data.public void receiveData(Data data)
data - Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.