Photon Server API Documentation v5.0RC1

Classes | Public Member Functions | Protected Member Functions | Properties | List of all members
Photon.SocketServer.Net.HttpRequestQueue Class Reference
Inheritance diagram for Photon.SocketServer.Net.HttpRequestQueue:

Public Member Functions

 HttpRequestQueue ()
 
 HttpRequestQueue (IFiber fiber)
 
void SetCounters (IHttpRequestQueueCounters counters)
 
void Enqueue (string requestUri, HttpRequestQueueCallback callback, object state, int? requestTimeout=null, int maxRetryCount=0)
 
void Enqueue (string requestUri, byte[] postData, HttpRequestQueueCallback callback, object state, int? requestTimeout=null, int maxRetryCount=0)
 
void Enqueue (HttpWebRequest webRequest, HttpRequestQueueCallback callback, object state, int maxRetryCount=0)
 
void Enqueue (HttpWebRequest webRequest, byte[] postData, HttpRequestQueueCallback callback, object state, int maxRetryCount=0)
 
void Dispose ()
 Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestQueue. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Releases the unmanaged resources used by the HttpRequestQueue and optionally disposes of the managed resources. More...
 

Properties

int MaxConcurrentRequests [get, set]
 
int MaxQueuedRequests [get, set]
 
int MaxTimedOutRequests [get, set]
 
int MaxErrorRequests [get, set]
 
int MaxBackoffInMilliseconds [get, set]
 
TimeSpan ReconnectInterval [get, set]
 
int ResponseMaxSizeLimit = 200_000 [get, set]
 
HttpRequestQueueState QueueState [get]
 
int QueuedRequestCount [get]
 
TimeSpan QueueTimeout [get, set]
 
int RunningRequestsCount [get]
 
TimeIntervalCounter TimedOutRequests [get]
 
TimeIntervalCounter ErrorRequests [get]
 
int[] ExpectedErrorCodes [get, set]
 
int TimoutcheckInterval [get, set]
 how often we check whether some request got stock More...
 

Constructor & Destructor Documentation

◆ HttpRequestQueue() [1/2]

Photon.SocketServer.Net.HttpRequestQueue.HttpRequestQueue ( )
inline

◆ HttpRequestQueue() [2/2]

Photon.SocketServer.Net.HttpRequestQueue.HttpRequestQueue ( IFiber  fiber)
inline

Member Function Documentation

◆ Dispose() [1/2]

void Photon.SocketServer.Net.HttpRequestQueue.Dispose ( )
inline

Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestQueue.

◆ Dispose() [2/2]

virtual void Photon.SocketServer.Net.HttpRequestQueue.Dispose ( bool  disposing)
inlineprotectedvirtual

Releases the unmanaged resources used by the HttpRequestQueue and optionally disposes of the managed resources.

Parameters
disposingtrue to release both managed and unmanaged resources; false to releases only unmanaged resources.

◆ Enqueue() [1/4]

void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( HttpWebRequest  webRequest,
byte[]  postData,
HttpRequestQueueCallback  callback,
object  state,
int  maxRetryCount = 0 
)
inline

◆ Enqueue() [2/4]

void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( HttpWebRequest  webRequest,
HttpRequestQueueCallback  callback,
object  state,
int  maxRetryCount = 0 
)
inline

◆ Enqueue() [3/4]

void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( string  requestUri,
byte[]  postData,
HttpRequestQueueCallback  callback,
object  state,
int?  requestTimeout = null,
int  maxRetryCount = 0 
)
inline

◆ Enqueue() [4/4]

void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( string  requestUri,
HttpRequestQueueCallback  callback,
object  state,
int?  requestTimeout = null,
int  maxRetryCount = 0 
)
inline

◆ SetCounters()

void Photon.SocketServer.Net.HttpRequestQueue.SetCounters ( IHttpRequestQueueCounters  counters)
inline

Property Documentation

◆ ErrorRequests

TimeIntervalCounter Photon.SocketServer.Net.HttpRequestQueue.ErrorRequests
get

◆ ExpectedErrorCodes

int [] Photon.SocketServer.Net.HttpRequestQueue.ExpectedErrorCodes
getset

◆ MaxBackoffInMilliseconds

int Photon.SocketServer.Net.HttpRequestQueue.MaxBackoffInMilliseconds
getset

◆ MaxConcurrentRequests

int Photon.SocketServer.Net.HttpRequestQueue.MaxConcurrentRequests
getset

◆ MaxErrorRequests

int Photon.SocketServer.Net.HttpRequestQueue.MaxErrorRequests
getset

◆ MaxQueuedRequests

int Photon.SocketServer.Net.HttpRequestQueue.MaxQueuedRequests
getset

◆ MaxTimedOutRequests

int Photon.SocketServer.Net.HttpRequestQueue.MaxTimedOutRequests
getset

◆ QueuedRequestCount

int Photon.SocketServer.Net.HttpRequestQueue.QueuedRequestCount
get

◆ QueueState

HttpRequestQueueState Photon.SocketServer.Net.HttpRequestQueue.QueueState
get

◆ QueueTimeout

TimeSpan Photon.SocketServer.Net.HttpRequestQueue.QueueTimeout
getset

◆ ReconnectInterval

TimeSpan Photon.SocketServer.Net.HttpRequestQueue.ReconnectInterval
getset

◆ ResponseMaxSizeLimit

int Photon.SocketServer.Net.HttpRequestQueue.ResponseMaxSizeLimit = 200_000
getset

◆ RunningRequestsCount

int Photon.SocketServer.Net.HttpRequestQueue.RunningRequestsCount
get

◆ TimedOutRequests

TimeIntervalCounter Photon.SocketServer.Net.HttpRequestQueue.TimedOutRequests
get

◆ TimoutcheckInterval

int Photon.SocketServer.Net.HttpRequestQueue.TimoutcheckInterval
getset

how often we check whether some request got stock