public class GlueCacheClearServlet extends HttpServlet implements GlueCacheEventReceiver
web.xml 파일 내용url & parameter http:// cache com.poscoict.glueframework.cache.remote.GlueCacheClearServlet UD_SC_SUCCESS 700 UD_SC_FAILURE 800 2 cache *.cache : / /cache.remove __region_name__, __cache_key__, __requestor__ 로 com.poscoict.glueframework.cache.remote.GlueCacheEvent 의 생성자값으로 사용함. init-param GlueCacheClearServlet servlet의 init-param은 다음과 같다. - UD_SC_SUCCESS : HttpResponse 정상 상태코드 정의, default 700 - UD_SC_FAILURE : HttpResponse 에러 상태코드 정의, default 800
Constructor and Description |
---|
GlueCacheClearServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected GlueCacheEventProcessor |
getCacheEventProcessor()
getter method.
|
void |
init(ServletConfig config) |
int |
removeCachedObject(String region,
String key) |
int |
removeCachedObject(String region,
String[] keys) |
protected void |
service(HttpServletRequest request,
HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
protected GlueCacheEventProcessor getCacheEventProcessor()
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service
in class HttpServlet
ServletException
IOException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
public int removeCachedObject(String region, String key)
removeCachedObject
in interface GlueCacheEventReceiver
public int removeCachedObject(String region, String[] keys)
removeCachedObject
in interface GlueCacheEventReceiver
Copyright © 2013–2021 POSCO ICT. All rights reserved.