Photon Server API
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]
 
HttpRequestQueueState QueueState [get]
 
int QueuedRequestCount [get]
 
TimeSpan QueueTimeout [get, set]
 
int RunningRequestsCount [get]
 
TimeIntervalCounter TimedOutRequests [get]
 
TimeIntervalCounter ErrorRequests [get]
 
int[] ExpectedErrorCodes [get, set]
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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.
void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( string  requestUri,
HttpRequestQueueCallback  callback,
object  state,
int?  requestTimeout = null,
int  maxRetryCount = 0 
)
inline
void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( string  requestUri,
byte[]  postData,
HttpRequestQueueCallback  callback,
object  state,
int?  requestTimeout = null,
int  maxRetryCount = 0 
)
inline
void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( HttpWebRequest  webRequest,
HttpRequestQueueCallback  callback,
object  state,
int  maxRetryCount = 0 
)
inline
void Photon.SocketServer.Net.HttpRequestQueue.Enqueue ( HttpWebRequest  webRequest,
byte[]  postData,
HttpRequestQueueCallback  callback,
object  state,
int  maxRetryCount = 0 
)
inline
void Photon.SocketServer.Net.HttpRequestQueue.SetCounters ( IHttpRequestQueueCounters  counters)
inline

Property Documentation

TimeIntervalCounter Photon.SocketServer.Net.HttpRequestQueue.ErrorRequests
get
int [] Photon.SocketServer.Net.HttpRequestQueue.ExpectedErrorCodes
getset
int Photon.SocketServer.Net.HttpRequestQueue.MaxBackoffInMilliseconds
getset
int Photon.SocketServer.Net.HttpRequestQueue.MaxConcurrentRequests
getset
int Photon.SocketServer.Net.HttpRequestQueue.MaxErrorRequests
getset
int Photon.SocketServer.Net.HttpRequestQueue.MaxQueuedRequests
getset
int Photon.SocketServer.Net.HttpRequestQueue.MaxTimedOutRequests
getset
int Photon.SocketServer.Net.HttpRequestQueue.QueuedRequestCount
get
HttpRequestQueueState Photon.SocketServer.Net.HttpRequestQueue.QueueState
get
TimeSpan Photon.SocketServer.Net.HttpRequestQueue.QueueTimeout
getset
TimeSpan Photon.SocketServer.Net.HttpRequestQueue.ReconnectInterval
getset
int Photon.SocketServer.Net.HttpRequestQueue.RunningRequestsCount
get
TimeIntervalCounter Photon.SocketServer.Net.HttpRequestQueue.TimedOutRequests
get