com.taobao.metamorphosis.client.consumer
接口 MessageIdCache

所有已知实现类:
ConcurrentLRUHashMap

public interface MessageIdCache

Message id cache to prevent duplicated messages for the same consumer group.

从以下版本开始:
1.4.6
作者:
dennis

方法摘要
 Byte get(String key)
          Get value from cache,it the item is exists,it must be returned.
 void put(String key, Byte exists)
          Added key value to cache
 

方法详细信息

put

void put(String key,
         Byte exists)
Added key value to cache

参数:
key -
exists -

get

Byte get(String key)
Get value from cache,it the item is exists,it must be returned.

参数:
key -
返回:


Copyright © 2010–2013. All rights reserved.