Search in sources :

Example 1 with OutboxStatusEvent

use of com.amplifyframework.datastore.events.OutboxStatusEvent in project amplify-android by aws-amplify.

the class MutationProcessor method publishCurrentOutboxStatus.

/**
 * Publish current outbox status to hub.
 */
private void publishCurrentOutboxStatus() {
    HubEvent<OutboxStatusEvent> hubEvent = new OutboxStatusEvent(mutationOutbox.peek() == null).toHubEvent();
    Amplify.Hub.publish(HubChannel.DATASTORE, hubEvent);
}
Also used : OutboxStatusEvent(com.amplifyframework.datastore.events.OutboxStatusEvent)

Aggregations

OutboxStatusEvent (com.amplifyframework.datastore.events.OutboxStatusEvent)1