Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-7

Provide "oneWay", a way to indicate that the caller does not care about an asynchronous result

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • Medium

    Description

      Even if a user calls a method asynchronously and does not care about the result, the result is still collected. Provide a way to indicate ahead of time that the result will be discarded.

      Example mockup
      // Given this method:
      proxy.someMethod(); // returns T
      
      // We currently support:
      EJBClient.getFutureResult(EJBClient.asynchronous(proxy).someMethod()); // "converts" result into Future<T>
      
      // But should also support:
      EJBClient.oneWay(proxy).someMethod(); // discards result and returns null
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: