Comments (2)
你这种直接返回 instance 的方式是错误的,instance 百分百为空,因为你的 instance 被定义为 static 的,且是 final 类型,所以无法动态获取 instance 实例,所以你应该使用访问静态类或静态资源的方式获取 instance 并返回,如下代码:
Your method of directly returning instance is wrong, instance is 100% empty, because your instance is defined as static and final type, so you cannot dynamically obtain instance instance, so you should use access to static class or static resource way to get instance and return, the following code:
DisruptorFactory.instance
from disruptor.
@lsl6666 你好,这个问题还有吗,没有的话要关闭这个 issue 了。
Hello, is this problem still there? If not, please close this issue.
from disruptor.
Related Issues (20)
- 4.0 is based on JDK11. Will the JDK8-based 3.x version continue to be released? HOT 1
- Can a new 3.X version be released based on 3.4.4? HOT 3
- 4.0.0.RC1 has been released for more than one year. When will another stable version be released?
- please guide me,thanks. HOT 1
- A service creates multiple Disruptors HOT 4
- Directly replace Fence with the methods setRelease, setVolatile, and getAcquire. No need to set barriers via VarHandle HOT 1
- FixedSequenceGroup What does this class do? HOT 1
- BlockingWaitStrategy CPU 100% HOT 2
- SequenceBarrier.waitForSequence sometimes doesn't respect BlockingWaitStrategy
- Lmax Disruptor Version 4.0.0 with MultiProducers blocks in ringbuffer.next() call HOT 1
- Problem Using LMAX Disruptor 4.0.0 with JDBC-postgres 42.6.0 HOT 4
- Java 21 and log4j HOT 1
- In version 4.x, is there a successor to Disruptor::handleEventsWithWorkerPool? Can multiple consumers cooperate to process a batch of messages? (one message will only be processed by one consumer) HOT 6
- About process a batch of messages HOT 3
- Possible unnecessary judgments
- Reduce unnecessary consumption
- [v3.4.2] AsyncLogger thread is stuck on 100% CPU on lmax queue polling
- Another Disruptor
- I think this framework is great, thank you to the author for their outstanding work. Does this framework have a C++ version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disruptor.