package org.springframework.messaging.support;

import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHandler;

/**
 * Extension of the Runnable interface with methods to obtain the MessageHandler
 * and Message to be handled.
 *
 * @author Rossen Stoyanchev
 * @since 4.1
 */
public interface MessageHandlingRunnable extends Runnable {

	/**
	 * Return the Message that will be handled.
	 */
	Message<?> getMessage();

	/**
	 * Return the MessageHandler that will be used to handle the message.
	 */
	MessageHandler getMessageHandler();

}

@@ -1,8 +1,630 @@
+/*%0A * Copyright 2002-2014 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A
 package 
@@ -787,24 +787,31 @@
  of the 
+%7B@link 
 Runnable
  interfa
@@ -802,16 +802,17 @@
 Runnable
+%7D
  interfa
@@ -836,24 +836,34 @@
 o obtain the
+%0A * %7B@link
  MessageHand
@@ -869,23 +869,29 @@
 dler
-%0A *
+%7D
  and 
+%7B@link 
 Message
+%7D
  to 
@@ -934,16 +934,16 @@
 yanchev%0A
-
  * @sinc
@@ -947,16 +947,18 @@
 ince 4.1
+.1
 %0A */%0Apub

Complete Javadoc for MessageHandlingRunnable