com.taobao.metamorphosis.client.consumer
类 ConcurrentLRUHashMap

java.lang.Object
  继承者 com.taobao.metamorphosis.client.consumer.ConcurrentLRUHashMap
类型参数:
K -
V -
所有已实现的接口:
MessageIdCache

public class ConcurrentLRUHashMap
extends Object
implements MessageIdCache

Concurrent LRU map

作者:
dennis

构造方法摘要
ConcurrentLRUHashMap()
           
ConcurrentLRUHashMap(int capacity)
           
 
方法摘要
 Byte get(String k)
          Get value from cache,it the item is exists,it must be returned.
 void put(String k, Byte v)
          Added key value to cache
 int size()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ConcurrentLRUHashMap

public ConcurrentLRUHashMap()

ConcurrentLRUHashMap

public ConcurrentLRUHashMap(int capacity)
方法详细信息

size

public int size()

put

public void put(String k,
                Byte v)
从接口 MessageIdCache 复制的描述
Added key value to cache

指定者:
接口 MessageIdCache 中的 put

get

public Byte get(String k)
从接口 MessageIdCache 复制的描述
Get value from cache,it the item is exists,it must be returned.

指定者:
接口 MessageIdCache 中的 get
返回:


Copyright © 2010–2013. All rights reserved.