Class RetryingRemoteAction<T>
- java.lang.Object
-
- com.pubnub.api.endpoints.remoteaction.RetryingRemoteAction<T>
-
- All Implemented Interfaces:
RemoteAction<T>
public class RetryingRemoteAction<T> extends java.lang.Object implements RemoteAction<T>
-
-
Constructor Summary
Constructors Constructor Description RetryingRemoteAction(RemoteAction<T> remoteAction, int maxNumberOfAutomaticRetries, PNOperationType operationType, java.util.concurrent.ExecutorService executorService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
async(@NotNull PNCallback<T> callback)
static <T> RetryingRemoteAction<T>
autoRetry(RemoteAction<T> remoteAction, int maxNumberOfAutomaticRetries, PNOperationType operationType, java.util.concurrent.ExecutorService executorService)
void
retry()
void
silentCancel()
T
sync()
-
-
-
Constructor Detail
-
RetryingRemoteAction
public RetryingRemoteAction(RemoteAction<T> remoteAction, int maxNumberOfAutomaticRetries, PNOperationType operationType, java.util.concurrent.ExecutorService executorService)
-
-
Method Detail
-
autoRetry
public static <T> RetryingRemoteAction<T> autoRetry(RemoteAction<T> remoteAction, int maxNumberOfAutomaticRetries, PNOperationType operationType, java.util.concurrent.ExecutorService executorService)
-
sync
public T sync() throws PubNubException
- Specified by:
sync
in interfaceRemoteAction<T>
- Throws:
PubNubException
-
async
public void async(@NotNull @NotNull PNCallback<T> 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>
-
-