Skip to content

Commit ce9ab50

Browse files
committed
1.0.5 released
1 parent c44cfc8 commit ce9ab50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ public void testSerialGenerate() {
211211

212212
It is suitable for **continuously high consumption** ID distribution, and will also maintain the accuracy of ID sorting for certificate generation. This method will increase memory and CPU cache usage to a certain extent.
213213

214-
* enableFutureTime 为true时的 DefaultUidGenerator:
214+
* DefaultUidGenerator and enableFutureTime is true :
215215

216216
It is suitable for **continuously maintaining low consumption after occasional sudden consumption increases** ID distribution. This method has higher performance than CachedUidGenerator when sudden high consumption occurs, but it should not continue to maintain high consumption (consumable future The time is controlled by maxBackwardSeconds, and an exception will be thrown after exceeding), because excessive use of the future time may cause duplicate IDs to be generated after the service is restarted and the ID sorting in a short period of time will be inaccurate.
217-
* enableFutureTime 为false时的 DefaultUidGenerator:
217+
* DefaultUidGenerator and enableFutureTime is false :
218218

219219
It is suitable for **low consumption real-time** ID distribution. This method can guarantee the accuracy of the time in the ID and can meet the high-precision ID sorting. Once the consumption is higher than the current time, a waiting response will be returned. , wait for the next available time to issue the ID (this method has the lowest performance when the consumption is greater than the number of IDs that can be generated at the current time), the maximum waiting time is controlled by maxBackwardSeconds, and an exception is thrown after exceeding.

0 commit comments

Comments
 (0)