public class StreamListener
extends java.lang.Object
MessageListener to process each
of the messages. On completion of message processing, the handler should return a MessageAction which will
determine the action to be taken on the message. The semantics provide for Atleast Once processing and so the client
might receive duplicate messages.| Constructor and Description |
|---|
StreamListener(java.lang.String queueName,
java.lang.String accessKey)
The queue name and access key are specific to a project and will be provided by Taskmonk
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
addListener(MessageListener listener)
Add a listener for messages from Taskmonk
|
public StreamListener(java.lang.String queueName,
java.lang.String accessKey)
queueName - accessKey - public java.lang.Boolean addListener(MessageListener listener) throws com.microsoft.azure.servicebus.primitives.ServiceBusException, java.lang.InterruptedException
listener - MessageListener An implementation to handle messages receivedcom.microsoft.azure.servicebus.primitives.ServiceBusExceptionjava.lang.InterruptedException