Interface OperationHandler

  • All Implemented Interfaces:

    
    public interface OperationHandler<T extends Object>
    
                        

    Generic completion callback.

    Used for asynchronous operations that return result data.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onResult(T result, NCError error) Operation completion callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onResult

         abstract Unit onResult(T result, NCError error)

        Operation completion callback.

        Parameters:
        result - The result data on success; null on failure
        error - Error info on failure; null on success