|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InboundWire
Implementations are responsible for managing the inbound side of a wire, including the invocation chains associated with each service operation.
Method Summary | |
---|---|
void |
addInvocationChain(Operation<?> operation,
InboundInvocationChain chain)
Adds the invocation chain associated with the given operation |
void |
addInvocationChains(Map<Operation<?>,InboundInvocationChain> chains)
Adds the collection of invocation chains keyed by operation |
void |
addMapping(Object messageId,
Object fromAddress)
Creates an association between a message id and the address of the SCAObject that the corresponding message originates from |
void |
addSourceCallbackInvocationChain(Object targetAddr,
Operation<?> operation,
OutboundInvocationChain chain)
Adds the callback invocation chain associated with the given operation for a given target addr |
void |
addSourceCallbackInvocationChains(Object targetAddr,
Map<Operation<?>,OutboundInvocationChain> chains)
Adds the collection of callback invocation chains keyed by operation for a given target addr |
String |
getCallbackReferenceName()
Returns the name of the callback associated with the service of the wire |
Map<Operation<?>,InboundInvocationChain> |
getInvocationChains()
Returns the invocation chain for each operation on a service specified by a reference or a target service. |
String |
getServiceName()
Returns the name of the target service of the wire |
Map<Operation<?>,OutboundInvocationChain> |
getSourceCallbackInvocationChains(Object targetAddr)
Returns the callback invocation configuration for each operation on a service specified by a reference or a target service. |
void |
removeMapping(Object messageId)
Removes an association between a message id and the address of the SCAObject that the corresponding message originates from |
Object |
retrieveMapping(Object messageId)
Retrieves the SCAObject address that is associated with a message id |
void |
setCallbackReferenceName(String callbackReferenceName)
Sets the name of the callback associated with the service of the wire |
void |
setServiceName(String name)
Sets the name of the target service of the wire |
void |
setTargetWire(OutboundWire wire)
Set when a wire can be optimized; that is when no handlers or interceptors exist on either end |
Methods inherited from interface org.apache.tuscany.spi.wire.RuntimeWire |
---|
addInterface, getContainer, getServiceContract, getTargetService, isOptimizable, setContainer, setServiceContract |
Method Detail |
---|
String getServiceName()
void setServiceName(String name)
Map<Operation<?>,InboundInvocationChain> getInvocationChains()
void addInvocationChains(Map<Operation<?>,InboundInvocationChain> chains)
void addInvocationChain(Operation<?> operation, InboundInvocationChain chain)
Map<Operation<?>,OutboundInvocationChain> getSourceCallbackInvocationChains(Object targetAddr)
void addSourceCallbackInvocationChains(Object targetAddr, Map<Operation<?>,OutboundInvocationChain> chains)
void addSourceCallbackInvocationChain(Object targetAddr, Operation<?> operation, OutboundInvocationChain chain)
String getCallbackReferenceName()
void setCallbackReferenceName(String callbackReferenceName)
void setTargetWire(OutboundWire wire)
void addMapping(Object messageId, Object fromAddress)
Object retrieveMapping(Object messageId)
void removeMapping(Object messageId)
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |