Package com.veeva.vault.sdk.api.queue
Interface QueueService
- All Superinterfaces:
Service
Provides methods to create and put messages in a queue.
-
Method Summary
Modifier and TypeMethodDescriptionnewMessage(String queueName) Creates a new instance of aMessageto be sent on a queue withputMessage(Message), in order to set message attributes and items.newMessage(String queueName, List<String> connectionNames) Creates a new instance of aMessageto be sent on a queue withputMessage(Message), in order to set message attributes and items.putMessage(Message message) Puts aMessageonto a queue specified bynewMessage(String).
-
Method Details
-
newMessage
Creates a new instance of aMessageto be sent on a queue withputMessage(Message), in order to set message attributes and items.- Parameters:
queueName- The public name of the queue to put the message into. Must be a valid queue.- Returns:
- A new instance of a
Message
-
newMessage
Creates a new instance of aMessageto be sent on a queue withputMessage(Message), in order to set message attributes and items. Message will only be sent to connections specified- Parameters:
queueName- The public name of the queue to put the message into. Must be a valid outbound queue.connectionNames- Must be non-null and non-empty and all the connections specified must be associated with the given queue.- Returns:
- A new instance of a
Message
-
putMessage
Puts aMessageonto a queue specified bynewMessage(String). The message will be sent to all connections referenced by the queue.- Parameters:
message-Messageto send to the queue's connections- Returns:
- a
PutMessageResponsewhich contains identifiers for the messages and the connections they were sent to, or any encountered errors
-