Package com.kii.cloud.storage.callback
Class KiiBucketCallBack<T>
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiBucketCallBack<T>
-
- All Implemented Interfaces:
CountCallBack
public abstract class KiiBucketCallBack<T> extends java.lang.Object implements CountCallBack
-
-
Constructor Summary
Constructors Constructor Description KiiBucketCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCountCompleted(KiiBucket bucket, KiiQuery query, int count, java.lang.Exception exception)
Runs on the UI thread afterKiiBucket.count(CountCallBack)
has been executed.void
onDeleteCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiBucket.delete(KiiBucketCallBack)
has been executed.void
onTaskCancel(int token)
Runs on the UI thread after the task has been canceled.void
onTaskStart(int token)
Runs on the UI thread before the task is executed.
-
-
-
Method Detail
-
onTaskCancel
public void onTaskCancel(int token)
Runs on the UI thread after the task has been canceled.
-
onTaskStart
public void onTaskStart(int token)
Runs on the UI thread before the task is executed.
-
onDeleteCompleted
public void onDeleteCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiBucket.delete(KiiBucketCallBack)
has been executed.- Parameters:
token
- id of this task.exception
- null if succeeded.
-
onCountCompleted
public void onCountCompleted(@NonNull KiiBucket bucket, @Nullable KiiQuery query, int count, @Nullable java.lang.Exception exception)
Description copied from interface:CountCallBack
Runs on the UI thread afterKiiBucket.count(CountCallBack)
has been executed.- Specified by:
onCountCompleted
in interfaceCountCallBack
- Parameters:
bucket
- on which the query has executed.query
- executed query.count
- number of objects matched the specified query.exception
- null if succeeded.
-
-