public class JMSMessageReceiver extends Object implements Runnable, Thread.UncaughtExceptionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
receive()
Start message receiving via message consumer.
|
void |
receive(long timeout)
Start receiving messages with a wait timeout.
|
void |
run()
The runnable implementation which is invoked when message receiving is started.
|
void |
stopMessageReceiver()
Change the state of the message receiver to stop the thread.
|
void |
uncaughtException(Thread thread,
Throwable error)
Any exception that was thrown when receiving messages from the receiver thread will be reported here.
|
public void run()
public void receive()
public void receive(long timeout)
timeout - Message receive wait timeoutpublic void uncaughtException(Thread thread, Throwable error)
uncaughtException in interface Thread.UncaughtExceptionHandlerthread - The thread which produced the error.error - The error.public void stopMessageReceiver()
Copyright © 2019 WSO2. All rights reserved.