Package 

Interface ObjectsCallback


  • 
    public interface ObjectsCallback<T>
    
                        

    Callback interface for handling results of asynchronous Objects operations. Used for operations like creating LiveMaps/LiveCounters, modifying entries, and retrieving objects. Callbacks are executed on background threads managed by the Objects system.

    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(T result) Called when the asynchronous operation completes successfully.For modification operations (set, remove, increment), result is typically Void.For creation/retrieval operations, result contains the created/retrieved object.
      abstract void onError(AblyException exception) Called when the asynchronous operation fails.The exception contains detailed error information including error codes and messages.Common errors include network issues, authentication failures, and validation errors.
      • Methods inherited from class java.lang.Object

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

      • onSuccess

         abstract void onSuccess(T result)

        Called when the asynchronous operation completes successfully.For modification operations (set, remove, increment), result is typically Void.For creation/retrieval operations, result contains the created/retrieved object.

        Parameters:
        result - the result of the operation, may be null for modification operations
      • onError

         abstract void onError(AblyException exception)

        Called when the asynchronous operation fails.The exception contains detailed error information including error codes and messages.Common errors include network issues, authentication failures, and validation errors.

        Parameters:
        exception - the exception that occurred during the operation