com.poscoict.glueframework.cache.remote
Class GlueHttpCacheEventSender

java.lang.Object
  extended by com.poscoict.glueframework.cache.remote.GlueHttpCacheEventSender
All Implemented Interfaces:
GlueCacheEventSender, org.springframework.beans.factory.InitializingBean

public class GlueHttpCacheEventSender
extends Object
implements GlueCacheEventSender, org.springframework.beans.factory.InitializingBean

CacheEventSender ±¸Çöü.

 Bean Property
 
 - targetUrl : (Çʼö)
 
 - timeout : (¼±ÅÃ) 'http.socket.timeout'
 
 - requestRetryCount : (¼±ÅÃ) 'http.method.retry-handler'
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 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="100"/>
         <property name="requestRetryCount" value="3"/>
     </bean>
 


Field Summary
 
Fields inherited from interface com.poscoict.glueframework.cache.remote.GlueCacheEventSender
FAILURE, NOT_EXIST, SUCCESS
 
Constructor Summary
GlueHttpCacheEventSender()
           
 
Method Summary
 void afterPropertiesSet()
           
 int getRequestRetryCount()
           
 List<String> getTargetUrl()
           
 long getTimeout()
           
 String sendEvent(GlueCacheEvent event)
           
 void setRequestRetryCount(int requestRetryCount)
          setter method for DI.
 void setTargetUrl(List<String> targetUrl)
          setter method for DI.
 void setTimeout(long timeout)
          setter method for DI.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlueHttpCacheEventSender

public GlueHttpCacheEventSender()
Method Detail

getTargetUrl

public List<String> getTargetUrl()
Returns:
the targetUrl

setTargetUrl

public void setTargetUrl(List<String> targetUrl)
setter method for DI.

Parameters:
targetUrl - the targetUrl to set

getTimeout

public long getTimeout()
Returns:
the timeout

setTimeout

public void setTimeout(long 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

sendEvent

public String sendEvent(GlueCacheEvent event)
Specified by:
sendEvent in interface GlueCacheEventSender

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.