@PermitAll @RunAs(value="processAgent") @DeclareRoles(value="processAgent") public class CommunicationServiceBean extends Object implements CommunicationService
Constructor and Description |
---|
CommunicationServiceBean() |
Modifier and Type | Method and Description |
---|---|
void |
sendAsync(CommunicationUnit communicationUnit)
Sends a communication unit asynchronously.
|
void |
sendAsync(CommunicationUnit communicationUnit,
Integer priority)
Sends a communication unit asynchronously with the given priority.
|
ExecutionTrace |
sendSync(CommunicationUnit communicationUnit)
Sends a communication unit synchronously.
|
public void sendAsync(CommunicationUnit communicationUnit) throws CommunicationException
CommunicationService
sendAsync
in interface CommunicationService
communicationUnit
- the communication unitCommunicationException
public void sendAsync(CommunicationUnit communicationUnit, Integer priority) throws CommunicationException
CommunicationService
sendAsync
in interface CommunicationService
communicationUnit
- the communication unitpriority
- priority used for the deliveryCommunicationException
public ExecutionTrace sendSync(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
CommunicationService
sendSync
in interface CommunicationService
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.