Class ComposableRemoteAction<T,U>
- java.lang.Object
-
- com.pubnub.api.endpoints.remoteaction.ComposableRemoteAction<T,U>
-
- All Implemented Interfaces:
RemoteAction<U>
public class ComposableRemoteAction<T,U> extends java.lang.Object implements RemoteAction<U>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComposableRemoteAction.ComposableBuilder<T>
-
Constructor Summary
Constructors Constructor Description ComposableRemoteAction(RemoteAction<T> remoteAction, RemoteActionFactory<T,U> nextRemoteActionFactory, java.lang.Boolean checkpoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasync(@NotNull PNCallback<U> callback)ComposableRemoteAction<T,U>checkpoint()static <T> ComposableRemoteAction.ComposableBuilder<T>firstDo(RemoteAction<T> remoteAction)voidretry()voidsilentCancel()Usync()<Y> ComposableRemoteAction<U,Y>then(RemoteActionFactory<U,Y> factory)
-
-
-
Constructor Detail
-
ComposableRemoteAction
public ComposableRemoteAction(RemoteAction<T> remoteAction, RemoteActionFactory<T,U> nextRemoteActionFactory, java.lang.Boolean checkpoint)
-
-
Method Detail
-
firstDo
public static <T> ComposableRemoteAction.ComposableBuilder<T> firstDo(RemoteAction<T> remoteAction)
-
then
public <Y> ComposableRemoteAction<U,Y> then(RemoteActionFactory<U,Y> factory)
-
checkpoint
public ComposableRemoteAction<T,U> checkpoint()
-
sync
public U sync() throws PubNubException
- Specified by:
syncin interfaceRemoteAction<T>- Throws:
PubNubException
-
async
public void async(@NotNull @NotNull PNCallback<U> callback)- Specified by:
asyncin interfaceRemoteAction<T>
-
retry
public void retry()
- Specified by:
retryin interfaceRemoteAction<T>
-
silentCancel
public void silentCancel()
- Specified by:
silentCancelin interfaceRemoteAction<T>
-
-