Photon Plugins API Documentation v5.0RC1

Static Public Member Functions | Static Public Attributes | List of all members
Photon.Hive.Plugin.HttpRequestQueueResult Class Reference

Codes returned as a result of process of queued HTTP request. More...

Static Public Member Functions

static string ToString (int value)
 

Static Public Attributes

const byte Success = 0
 The HTTP request was succesfully processed. More...
 
const byte RequestTimeout = 1
 The HTTP request timed out. More...
 
const byte QueueTimeout = 2
 The HTTP request queue timed out. More...
 
const byte Offline = 3
 If the application's respective HTTP queries' queue is in offline mode. More...
 
const byte QueueFull = 4
 The HTTP request queue is full. More...
 
const byte Error = 5
 An error has occurred while processing the HTTP request. More...
 

Detailed Description

Codes returned as a result of process of queued HTTP request.

Member Function Documentation

◆ ToString()

static string Photon.Hive.Plugin.HttpRequestQueueResult.ToString ( int  value)
inlinestatic

Member Data Documentation

◆ Error

const byte Photon.Hive.Plugin.HttpRequestQueueResult.Error = 5
static

An error has occurred while processing the HTTP request.

If the request's URL couldn't be parsed or the hostname couldn't be resolved or the web service is unreachable. Also this may happen if the endpoint returns an error HTTP status code. e.g. 400 (BAD REQUEST)

◆ Offline

const byte Photon.Hive.Plugin.HttpRequestQueueResult.Offline = 3
static

If the application's respective HTTP queries' queue is in offline mode.

If this return code is received, no HttpRequest should be sent during 10 seconds which is the time the HTTP queue takes to reconnect.

◆ QueueFull

const byte Photon.Hive.Plugin.HttpRequestQueueResult.QueueFull = 4
static

The HTTP request queue is full.

This happens if the queue of HTTP queries has reached a certain threshold for the respective application.

◆ QueueTimeout

const byte Photon.Hive.Plugin.HttpRequestQueueResult.QueueTimeout = 2
static

The HTTP request queue timed out.

A timer starts when a request is put into the HttpRequestQueue. A request can timeout if takes too much time inside the queue.

◆ RequestTimeout

const byte Photon.Hive.Plugin.HttpRequestQueueResult.RequestTimeout = 1
static

The HTTP request timed out.

This happens if the endpoint does not return a response in a timely manner.

◆ Success

const byte Photon.Hive.Plugin.HttpRequestQueueResult.Success = 0
static

The HTTP request was succesfully processed.

If the endpoint returns a successful HTTP status code. i.e. 2xx codes.