@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
CommunicationServicesendAsync in interface CommunicationServicecommunicationUnit - the communication unitCommunicationExceptionpublic void sendAsync(CommunicationUnit communicationUnit, Integer priority) throws CommunicationException
CommunicationServicesendAsync in interface CommunicationServicecommunicationUnit - the communication unitpriority - priority used for the deliveryCommunicationExceptionpublic ExecutionTrace sendSync(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
CommunicationServicesendSync in interface CommunicationServiceModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.