com.pubnub.api.models.consumer.PNStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub Show documentation
Show all versions of pubnub Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of
broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter
second!
package com.pubnub.api.models.consumer;
import com.pubnub.api.endpoints.Endpoint;
import com.pubnub.api.enums.PNOperationType;
import com.pubnub.api.enums.PNStatusCategory;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import java.util.List;
@Builder
@Getter
public class PNStatus {
private PNStatusCategory category;
private PNErrorData errorData;
private boolean error;
// boolean automaticallyRetry;
private int statusCode;
private PNOperationType operation;
private boolean tlsEnabled;
private String uuid;
private String authKey;
private String origin;
private Object clientRequest;
// send back channel, channel groups that were affected by this operation
private List affectedChannels;
private List affectedChannelGroups;
@Getter(AccessLevel.NONE)
private Endpoint executedEndpoint;
public void retry() {
executedEndpoint.retry();
}
/*
public void cancelAutomaticRetry() {
// TODO
}
*/
}