Class DefaultResultHandler<T>

java.lang.Object
com.levigo.jadice.web.transport.server.messaging.DefaultResultHandler<T>
All Implemented Interfaces:
com.levigo.jadice.web.shared.service.internal.MultipleResultHandler<T>

public class DefaultResultHandler<T> extends Object implements com.levigo.jadice.web.shared.service.internal.MultipleResultHandler<T>
  • Constructor Details

  • Method Details

    • onResult

      public void onResult(T obj)
      Description copied from interface: com.levigo.jadice.web.shared.service.internal.MultipleResultHandler
      This method will be called for every result object that has been produced. This method might be called multiple times if a service implementation produces more that a single result object. Always call onFinish() after all results are received.
      Specified by:
      onResult in interface com.levigo.jadice.web.shared.service.internal.MultipleResultHandler<T>
      Parameters:
      obj - the result object
    • onFinish

      public void onFinish(T obj)
      Description copied from interface: com.levigo.jadice.web.shared.service.internal.MultipleResultHandler
      Denotes that last result object. This method will be called only once and only if the service finished producing data.
      Specified by:
      onFinish in interface com.levigo.jadice.web.shared.service.internal.MultipleResultHandler<T>
      Parameters:
      obj - the last result object
    • onAbort

      public void onAbort(Throwable t)
      Description copied from interface: com.levigo.jadice.web.shared.service.internal.MultipleResultHandler
      If the service fails for some reason, this method will be called with the Throwable that caused the abortion.
      Specified by:
      onAbort in interface com.levigo.jadice.web.shared.service.internal.MultipleResultHandler<T>
      Parameters:
      t - the Throwable