Class GlueHttpCacheEventSender
java.lang.Object
com.poscoict.glueframework.cache.remote.GlueHttpCacheEventSender
- All Implemented Interfaces:
GlueCacheEventSender
,InitializingBean
public class GlueHttpCacheEventSender
extends Object
implements GlueCacheEventSender, InitializingBean
CacheEventSender 구현체.
Bean Property
- targetUrl : (필수)
- timeout : (선택) 'http.socket.timeout'
- requestRetryCount : (선택) 'http.method.retry-handler'
- charset : (선택) default "UTF-8"
예제
사용 예# 1
<bean id="cacheEventSender" class="com.poscoict.glueframework.cache.remote.GlueHttpCacheEventSender">
<property name="targetUrl">
<list>
<value>http://ip:port/contextRoot/servleetName</value>
</list>
</property>
</bean>
사용 예# 2
<bean id="cacheEventSender" class="com.poscoict.glueframework.cache.remote.GlueHttpCacheEventSender">
<property name="targetUrl">
<list>
<value>http://ip:port/contextRoot/servleetName</value>
</list>
</property>
<property name="timeout" value="10000"/>
<property name="requestRetryCount" value="3"/>
</bean>
-
Field Summary
Fields inherited from interface com.poscoict.glueframework.cache.remote.GlueCacheEventSender
FAILURE, NOT_EXIST, SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
sendEvent
(GlueCacheEvent event) void
setCharset
(String charset) void
setRequestRetryCount
(int requestRetryCount) setter method for DI.void
setTargetUrl
(List<String> targetUrl) setter method for DI.void
setTimeout
(int timeout) setter method for DI.toString()
-
Constructor Details
-
GlueHttpCacheEventSender
public GlueHttpCacheEventSender()
-
-
Method Details
-
getTargetUrl
- Returns:
- the targetUrl
-
setTargetUrl
setter method for DI.- Parameters:
targetUrl
- the targetUrl to set
-
getTimeout
public int getTimeout()- Returns:
- the timeout
-
setTimeout
public void setTimeout(int timeout) setter method for DI.- Parameters:
timeout
- the timeout to set
-
getRequestRetryCount
public int getRequestRetryCount()- Returns:
- the requestRetryCount
-
setRequestRetryCount
public void setRequestRetryCount(int requestRetryCount) setter method for DI.- Parameters:
requestRetryCount
- the requestRetryCount to set
-
getCharset
- Returns:
- the charset
-
setCharset
- Parameters:
charset
- the charset to set
-
sendEvent
- Specified by:
sendEvent
in interfaceGlueCacheEventSender
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
toString
-