Actor模式的Java实现JActor.zip
JActor是一个Java的Actor模式的实现,经过测试在i5CPU上可支持每秒钟发送超过亿条消息,可能是目前最快的。这相当于是Scala的Actor的纯Java版本。示例代码://Createamailboxfactorywithapoolof10threads.MailboxFactorymailboxFactory=JAMailboxFactory.newMailboxFactory(10);//CreateandinitializeaTestactor.Mailboxmailbox=mailboxFactory.createAsyncMailbox();//.cr
用户评论