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 class
ComposableRemoteAction.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 void
async(@NotNull PNCallback<U> callback)
ComposableRemoteAction<T,U>
checkpoint()
static <T> ComposableRemoteAction.ComposableBuilder<T>
firstDo(RemoteAction<T> remoteAction)
void
retry()
void
silentCancel()
U
sync()
<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:
sync
in interfaceRemoteAction<T>
- Throws:
PubNubException
-
async
public void async(@NotNull @NotNull PNCallback<U> callback)
- Specified by:
async
in interfaceRemoteAction<T>
-
retry
public void retry()
- Specified by:
retry
in interfaceRemoteAction<T>
-
silentCancel
public void silentCancel()
- Specified by:
silentCancel
in interfaceRemoteAction<T>
-
-