org.springframework.batch.sample.rabbitmq.processor

## Class MessageProcessor

- java.lang.Object
- - org.springframework.batch.sample.rabbitmq.processor.MessageProcessor

- All Implemented Interfaces:
    ItemProcessor<java.lang.String,java.lang.String>

      public class MessageProcessor
      extends java.lang.Object
      implements ItemProcessor<java.lang.String,java.lang.String>

  Simple `ItemProcessor` implementation to append a "processed on" `Date` to a received message.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageProcessor()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `process(java.lang.String message)` Process the provided item, returning a potentially modified or new item for continued processing.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MessageProcessor

          public MessageProcessor()

  - ### Method Detail

    - #### process

          public java.lang.String process(java.lang.String message)
                                   throws java.lang.Exception

      Description copied from interface: `ItemProcessor`
      Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.
      Specified by:
        `process` in interface `ItemProcessor<java.lang.String,java.lang.String>`
      Parameters:
        `message` - to be processed
      Returns:
        potentially modified or new item for continued processing, null if processing of the provided item should not continue.
      Throws:
        `java.lang.Exception`