Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-140408

Cannot cast Runnable to `com.liferay.portal.kernel.messaging.MessageRunnable` when handling rejections from a MB Destination

    Details

      Description

      Implementations of com.liferay.portal.messaging.internal.BaseAsyncDestination create Runnables of type com.liferay.portal.kernel.messaging.MessageRunnable.

      This implies that hope that when providing a rejectionHandler to com.liferay.portal.messaging.internal.BaseAsyncDestination.setRejectedExecutionHandler(RejectedExecutionHandler)
      that the runnable passed into the handler be the same instance that implements MessageRunnable.

      However, this is not the case because the runnable is rapped in a lambda making the implementation completely opaque to the rejection handler.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shuyang.zhou Shuyang Zhou
              Reporter:
              raymond.auge Raymond Auge
              Participants of an Issue:
              Recent user:
              Brian Chan
              Engineering Assignee:
              Tina Tian
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 weeks ago

                  Packages

                  Version Package
                  Master