Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.chromium.sdk.util
Class RelaySyncCallback

    java.lang.Object
      org.chromium.sdk.util.RelaySyncCallback

    public class RelaySyncCallback

extends java.lang.Object

A utility class for handling `SyncCallback` in chained asynchronous operations. Whatever happens to each step of operation, `SyncCallback` must be called once in the end. `RelaySyncCallback` wraps the `SyncCallback` for the whole multistep operation. It works in pair with `RelaySyncCallback.Guard` class.

Nested Class Summary
`class` | `RelaySyncCallback.Guard` Responsible for calling SyncCallback unless operation has been successfully relayed to the next step.

Constructor Summary
`RelaySyncCallback(SyncCallback syncCallback)`

Method Summary
`RelayOk` | `finish()` Finish relay by calling `SyncCallback`.
`static RelayOk` | `finish(SyncCallback syncCallback)`
`SyncCallback` | `getUserSyncCallback()`
`RelaySyncCallback.Guard` | `newGuard()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RelaySyncCallback

    public RelaySyncCallback(SyncCallback syncCallback)

Method Detail

### newGuard

    public RelaySyncCallback.Guard newGuard()

### getUserSyncCallback

    public SyncCallback getUserSyncCallback()

### finish

    public RelayOk finish()

  Finish relay by calling `SyncCallback`.

### finish

    public static RelayOk finish(SyncCallback syncCallback)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD