DeviceMessageQueue.java 2.03 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  aQute.bnd.annotation.ProviderType
 *  javax.annotation.CheckForNull
 *  javax.annotation.Nonnull
 *  javax.annotation.Nullable
 *  org.apache.sling.commons.json.JSONObject
 */
package com.adobe.cq.screens;

import aQute.bnd.annotation.ProviderType;
import java.util.List;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.sling.commons.json.JSONObject;

@ProviderType
public interface DeviceMessageQueue {
    public void queueEntry(@Nonnull String var1, @Nonnull Entry var2);

    @CheckForNull
    public Entry dequeueEntry(@Nonnull String var1);

    @Nonnull
    public EntryBuilder createEntryBuilder(@Nonnull String var1);

    public void queue(@Nonnull String var1, @Nonnull String var2);

    public void queue(@Nonnull String var1, @Nonnull String var2, boolean var3);

    @CheckForNull
    public String dequeue(@Nonnull String var1);

    public List<Entry> getEntriesRequiringAck(@Nonnull String var1);

    public void remove(@Nonnull String var1, @Nonnull String var2);

    @CheckForNull
    public Entry dequeueDeliverableEntry(@Nonnull String var1);

    public void markDeliveredOrRemove(@Nonnull String var1, @Nonnull String var2);

    public void markAcknowledged(@Nonnull String var1, @Nonnull String var2);

    @ProviderType
    public static interface EntryBuilder {
        @Nonnull
        public EntryBuilder setPayload(@Nullable JSONObject var1);

        @Nonnull
        public EntryBuilder setRequiresAck(boolean var1);

        public EntryBuilder setDelivered(boolean var1);

        public EntryBuilder setAcknowledged(boolean var1);

        @Nonnull
        public Entry build();
    }

    @ProviderType
    public static interface Entry {
        @Nonnull
        public String getMessage();

        @CheckForNull
        public JSONObject getPayload();

        public boolean requiresAck();

        public boolean isAcknowledged();

        public boolean isDelivered();
    }

}