public class GlueCacheClearServlet extends javax.servlet.http.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(javax.servlet.ServletConfig config) |
int |
removeCachedObject(String region,
String key) |
int |
removeCachedObject(String region,
String[] keys) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
protected GlueCacheEventProcessor getCacheEventProcessor()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public int removeCachedObject(String region, String key)
removeCachedObject
in interface GlueCacheEventReceiver
public int removeCachedObject(String region, String[] keys)
removeCachedObject
in interface GlueCacheEventReceiver
Copyright © 2023–2024 POSCO DX. All rights reserved.