public static interface InvocationRequest.Resolved
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttachments()
Get the invocation attachment map.
|
EJBLocator<?> |
getEJBLocator()
Get the EJB locator of the request.
|
Object[] |
getParameters()
Get the method invocation parameters.
|
Transaction |
getTransaction()
Get the inflowed transaction of the request.
|
default Affinity |
getWeakAffinity()
Get the weak affinity of the request.
|
boolean |
hasTransaction()
Determine if the request has a transaction.
|
void |
writeInvocationResult(Object result)
Write the invocation result message.
|
@NotNull Map<String,Object> getAttachments()
null
)@NotNull Object[] getParameters()
null
)@NotNull EJBLocator<?> getEJBLocator()
Request.getEJBIdentifier()
, but of a type corresponding to the EJB type, and with a resolved EJB class
and affinity.null
)@NotNull default Affinity getWeakAffinity()
null
)boolean hasTransaction()
true
if there is a transaction context with this requestTransaction getTransaction() throws SystemException, IllegalStateException
hasTransaction()
first. This method should only be called one time
as it will inflow the transaction when called.
If a transaction is present but transaction inflow has failed, a SystemException
is thrown. In this case,
the invocation should fail.
It is the caller's responsibility to check the status of the returned transaction to ensure that it is in an active state; failure to do so can result in undesirable behavior.
null
if there is none for the requestSystemException
- if inflowing the transaction failedIllegalStateException
- if this method is called more than one timevoid writeInvocationResult(Object result)
result
- the invocation resultCopyright © 2019 JBoss by Red Hat. All rights reserved.