WMS_CACHE_QUERY_MISS_RESPONSE
Previous | Next |
WMS_CACHE_QUERY_MISS_RESPONSE
The WMS_CACHE_QUERY_MISS_RESPONSE enumeration type indicates what action the server must take in response to a cache miss.
Syntax
typedef enum WMS_CACHE_QUERY_MISS_RESPONSE{ WMS_CACHE_QUERY_MISS_SKIP = 0, WMS_CACHE_QUERY_MISS_DISCONNECT = 1, WMS_CACHE_QUERY_MISS_REDIRECT = 2, WMS_CACHE_QUERY_MISS_REDIRECT_TO_PROXY = 3, WMS_CACHE_QUERY_MISS_PLAY_BROADCAST = 4, WMS_CACHE_QUERY_MISS_PLAY_ON_DEMAND = 5, WMS_CACHE_QUERY_MISS_FORWARD_REQUEST = 6, WMS_CACHE_QUERY_MISS_PROCESS_REQUEST = 7 };
Members
WMS_CACHE_QUERY_MISS_SKIP
The plug-in will not service this request.
WMS_CACHE_QUERY_MISS_DISCONNECT
Disconnect the client.
WMS_CACHE_QUERY_MISS_REDIRECT
Redirect request to another server.
WMS_CACHE_QUERY_MISS_REDIRECT_TO_PROXY
Redirect the client to another cache proxy.
WMS_CACHE_QUERY_MISS_PLAY_BROADCAST
Play the request as a broadcast stream.
WMS_CACHE_QUERY_MISS_PLAY_ON_DEMAND
Play the request as an on-demand stream through the cache proxy on-demand publishing point.
WMS_CACHE_QUERY_MISS_FORWARD_REQUEST
Forward the request to an upstream server. This response is valid only when the server calls the QueryCacheMissPolicy method on the IWMSCacheProxy interface with the lQueryType parameter equal to WMS_CACHE_QUERY_GET_CONTENT_INFO or WMS_CACHE_QUERY_CACHE_EVENT.
WMS_CACHE_QUERY_MISS_PROCESS_REQUEST
The server determines how to process the client request. This response is valid only when the server calls the QueryCacheMissPolicy method on the IWMSCacheProxy interface with the lQueryType parameter equal to WMS_CACHE_QUERY_GET_CONTENT_INFO or WMS_CACHE_QUERY_CACHE_EVENT. It has the following meanings:
- If the lQueryType parameter equals WMS_CACHE_QUERY_GET_CONTENT_INFO, the server uses the pContentInfo parameter passed by the plug-in when it calls the OnQueryCacheMissPolicy method on the IWMSCacheProxyCallback interface to respond to the client's request. If pContentInfo is null, the server uses the bstrOriginUrl parameter instead.
- If the lQueryType parameter equals WMS_CACHE_QUERY_CACHE_EVENT, the server raises the associated event locally rather than propagating it to the origin server.
Remarks
You can use this enumeration in a cache plug-in when you implement the QueryCacheMissPolicy method on the IWMSCacheProxy interface or the OnGetContentInformation method on the IWMSCacheProxyServerCallback interface.
Requirements
Header: streamcache.h.
Library: WMSServerTypeLib.dll.
Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.
See Also (General)
See Also (Visual Basic .NET)
- IWMSCacheProxy.QueryCacheMissPolicy (Visual Basic .NET)
- IWMSCacheProxyCallback.OnQueryCacheMissPolicy (Visual Basic .NET)
- IWMSCacheProxyServerCallback.OnGetContentInformation (Visual Basic .NET)
See Also (C#)
- IWMSCacheProxy.QueryCacheMissPolicy (C#)
- IWMSCacheProxyCallback.OnQueryCacheMissPolicy (C#)
- IWMSCacheProxyServerCallback.OnGetContentInformation (C#)
See Also (C++)
- IWMSCacheProxy::QueryCacheMissPolicy
- IWMSCacheProxyCallback::OnQueryCacheMissPolicy
- IWMSCacheProxyServerCallback::OnGetContentInformation
Previous | Next |