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>
 
  • Constructor Details

    • GlueHttpCacheEventSender

      public GlueHttpCacheEventSender()
  • Method Details

    • 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 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

      public String getCharset()
      Returns:
      the charset
    • setCharset

      public void setCharset(String charset)
      Parameters:
      charset - the charset 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 InitializingBean
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object