| 程序包 | 说明 |
|---|---|
| com.dyngr.core |
| 限定符和类型 | 方法和说明 |
|---|---|
static <V> AttemptResult<V> |
AttemptResults.breakFor(String message)
Return an
AttemptResult that will break polling and throw an UserBreakException. |
static <V> AttemptResult<V> |
AttemptResults.breakFor(Throwable cause)
Return an
AttemptResult that will break polling and throw an UserBreakException. |
static <V> AttemptResult<V> |
AttemptResults.continueFor(Throwable cause) |
static <V> AttemptResult<V> |
AttemptResults.finishWith(V result)
Return an
AttemptResult that will end polling with given result. |
static <V> AttemptResult<V> |
AttemptResults.justContinue()
Return an
AttemptResult that makes polling continue. |
static AttemptResult<Void> |
AttemptResults.justFinish()
Return an
AttemptResult that will end polling without result. |
AttemptResult<V> |
AttemptMaker.process()
Do the actual polling action.
|
Copyright © 2019. All rights reserved.