Skip to content

cclreo/CommonDataStructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###ConcurrentQuene是一个支持并发读写的队列

具有阻塞读功能,并且数据在读走之后,可以自动删除,如果当前元素不存在,返回null;主要用在类似生产者-消费者模型的场合。

  1. 新建对象 ConcurrentQuene concurrentQuene = QueneFactory.newConcurrentQuene();

  2. 添加元素 concurrentQuene.put("key", "value");

  3. 取元素 concurrentQuene.take("key");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages