Ø The socket library that acts as a concurrency framework. Ø Faster than TCP, for clustered products and supercomputing. Ø Carries messages across inproc, IPC, TCP, and multicast. Ø Connect N-to-N via fanout, pubsub, pipeline, request-reply.
TinyEventBus
一个小而又快速的pubsub实现,具有Java 8和11的订阅者优先级和事件取消功能。
利用
void run() {
Bus bus = new Bus ();
bus . reg( Sub . of( System . out :: println));
bus . pub( " Hello World! " );
}
class Listenable {
Sub sub = Sub. of ( l -> ThreadLoc