Commit graph

175 commits

Author SHA1 Message Date
He-Pin(kerr)
391b71a3d0
chore: Rewrite ClassContext with scala (#2260) 2025-09-22 17:16:17 +08:00
PJ Fanning
92ca0314c0
silence compiler warnings new in scala 2.13.17 (#2255)
* silence compiler warning new in scala 2.13.17

* Update FrequencySketch.scala
2025-09-21 23:01:40 +08:00
He-Pin(kerr)
4f2434b650
chore: Drop @unused annotation from pekko (#2241) 2025-09-20 13:28:02 +08:00
He-Pin(kerr)
870d4499cc
chore: sort imports (#2235) 2025-09-20 11:30:05 +08:00
He-Pin(kerr)
8254acc0e8
chore: Remove ccompat.JavaConverters (#2234) 2025-09-20 01:12:16 +08:00
He-Pin(kerr)
9b2853c730
chore: Use scala.jdk.DurationConverters (#2205) 2025-09-20 01:05:11 +08:00
He-Pin(kerr)
875840d3b8
chore: Remove pekko.util.FutureConverters (#2207)
* chore: Remove pekko.util.FutureConverters
2025-09-20 00:42:52 +08:00
PJ Fanning
04f5fcd1b7
chore: Use Scala Option Converter (#2203)
* chore: Use Scala Option Converter
---------

Co-authored-by: He-Pin <hepin1989@gmail.com>
2025-09-19 23:34:29 +08:00
He-Pin(kerr)
9b5e641246
feat: Add sneakyThrow for Java (#2218) 2025-09-19 22:44:53 +08:00
He-Pin(kerr)
8c48393cd3
chore: Remove pekko.dispatch.ExecutionContexts.parasitic (#2208)
* chore: Remove pekko.dispatch.ExecutionContexts.parasitic

* .
2025-09-19 22:17:20 +08:00
He-Pin(kerr)
5acdace08c
chore: Remove compat Future (#2212) 2025-09-19 22:16:21 +08:00
PJ Fanning
e66cda2899
remove some stray java version checks (#2227) 2025-09-17 09:31:23 +02:00
Matthew de Detrich
daf3458185
Use stdlib IntFunction to not allow throwing (#2200) 2025-09-15 19:19:27 +08:00
PJ Fanning
f2b677dfa0
remove scala 2.12 support (#1986)
* remove scala 2.12 support

* move around some source because we don't need as many source dirs

* move more files

* remove annotations

* remove annotations

* Create remove-scala-2.12-support.excludes

* remove some scala-2.12 refs

* remove compat.PartialFunction

* Update remove-scala-2.12-support.excludes
2025-09-13 10:03:10 +01:00
He-Pin(kerr)
0f6def662f
chore: Make use of japi.funtion.* in Patterns (#2198) 2025-09-13 15:45:20 +08:00
PJ Fanning
f48ec1d425
update docs for calculateDelay (#2196)
* add back BackoffSupervisor.calculateDelay due to bin compat issues (#2195)

* add back BackoffSupervisor.calculateDelay due to bin compat issues

* Update BackoffSupervisor.scala

* Update releases-1.2.md

* Update BackoffSupervisor.scala

* remove deprecated method
2025-09-12 17:32:37 +01:00
He-Pin(kerr)
42c2b493cb
chore: Remove japi.option method (#2193)
* chore: Remove japi.option method

* .
2025-09-12 03:04:35 +08:00
He-Pin(kerr)
7fb098985b
chore: Remove ReentrantGuard (#2161) 2025-09-09 00:44:23 +08:00
He-Pin(kerr)
458ceed37e
feat: Add virtualize support for thread-pool-executor (#2169)
* feat: Add virtualize support for thread-pool-executor

* Update actor/src/main/resources/reference.conf

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>

* Update actor/src/main/resources/reference.conf

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>

* Update actor/src/main/resources/reference.conf

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2025-09-08 00:17:14 +08:00
He-Pin(kerr)
7b96bb8385
chore: Remove ExecutorServiceFactoryProvider from ThreadPoolConfig (#2175) 2025-09-07 20:10:16 +08:00
He-Pin(kerr)
8d9450b19e
chore: Add boolean parameter name when call registerForExecution (#2173) 2025-09-07 20:09:45 +08:00
He-Pin(kerr)
c708891504
chore: Use while loop (#2155) 2025-09-06 17:10:32 +08:00
He-Pin(kerr)
7cf3f6193d
feat: Add andThen and compose to japi function (#2147)
* feat: Add andThen and compose to japi function

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* .

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-06 01:36:10 +08:00
He-Pin(kerr)
6f2a65da4c
chore: Make use of japi.function in stream api. (#2143) 2025-09-05 03:24:26 +08:00
He-Pin(kerr)
5f87ed2ed6
feat: Add Untyped actor with stash for Java 21 (#2097) 2025-08-31 06:59:44 +08:00
He-Pin(kerr)
273dc116d4
chore: Remove SecurityManager usage. (#2106) 2025-08-30 20:36:13 +08:00
He-Pin(kerr)
f879bbb553
chore: Remove left org.apache.pekko.japi.Function in doc (#2105) 2025-08-30 16:40:46 +08:00
PJ Fanning
18d7ff815a
bind instanceof to named variables (#2088)
* bind instanceof to named variables

* Update StashJavaAPITestActors.java

* Update InteractionPatternsTest.java
2025-08-25 13:44:38 +01:00
He-Pin(kerr)
00b0a99278
chore: bump javafmt to 0.10.0 (#2081)
* chore: bump javafmt to 0.10.0

* chore: format with javafmt
2025-08-25 19:32:35 +08:00
He-Pin(kerr)
6c65996665
chore: Remove JAPI (#2079) 2025-08-24 18:02:33 +08:00
He-Pin(kerr)
8e21fd0269
chore: Remove FI (#2078) 2025-08-24 16:51:54 +08:00
He-Pin(kerr)
afb38c5f17
chore: Remove deprecated methods in Futures (#2070) 2025-08-24 02:17:52 +08:00
He-Pin(kerr)
442ecd76c5
chore: Make timeoutCompletionStage accept java Duration. (#2063) 2025-08-24 02:09:56 +08:00
He-Pin(kerr)
8ca24f6a08
chore: Make afterCompletionStage accept Java duration. (#2067)
* chore: Make afterCompletionStage accept Java duration.

* Fix missing newline at end of pattens.excludes

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2025-08-23 22:08:49 +08:00
He-Pin(kerr)
db92fad13d
feat: Add CompletionStages util. (#2060) 2025-08-23 21:45:30 +08:00
He-Pin(kerr)
629b7d74fe
chore: Deprecate Patterns.timeout method. (#2050) 2025-08-23 18:21:21 +08:00
He-Pin(kerr)
b3d2b3fbf1
chore: disable batch if isVirtualized (#2046) 2025-08-23 16:59:39 +08:00
He-Pin(kerr)
57676cdc59
chore: Remove two deprecated methods in AbstractScheduler (#2052)
* chore: Remove two deprecated methods in AbstractScheduler

* add newline at end of scheduler.excludes

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2025-08-23 16:43:26 +08:00
PJ Fanning
40dfb57c90
Scheduler: remove more deprecated methods (#2037)
* try to remove remaining deprecations in scheduler

* Update Scheduler.scala

* Update Cluster.scala

* mima
2025-08-22 16:24:15 +01:00
PJ Fanning
53789a4296
remove Java8Cleaner (#2031) 2025-08-13 21:23:19 +01:00
PJ Fanning
96a84ca89b
use better byte buffer cleaner (#2020)
* use better byte buffer cleaner

* scalafmt

* Update ByteBufferCleaner.java

* Update actor/src/main/java/org/apache/pekko/io/ByteBufferCleaner.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update DirectByteBufferPool.scala

* method handle

* Create ByteBufferCleanerSpec.scala

* invokeExact

* Update ByteBufferCleaner.java

* test buffer cleaner at init time

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-13 20:04:00 +01:00
PJ Fanning
08d3896310
remove old deprecated dns code (#2023)
* remove old deprecated dns code

* remove test that uses old deprecated and now removed code

* Update DnsCompileOnlyDocSpec.scala

* Update remove-deprecated-methods.excludes

* mima

* try to fix docs

* more issues
2025-08-10 08:52:41 +01:00
PJ Fanning
957355cc3f
remove deprecated backoff classes and cluster-sharding settings (#2018)
* remove deprecated backoff classes

* remove unused deprecated methods from ClusterShardingSettings

* Update remove-deprecated-methods.excludes

* Update ClusterShardingSettings.scala

* Update remove-deprecated-methods.excludes

* Update remove-deprecated-methods.excludes

* mima
2025-08-08 09:02:29 +01:00
PJ Fanning
5bfbfc5c89
with Java 17 min - we can call Thread.onSpinWait directly (#2021) 2025-08-08 08:57:52 +01:00
PJ Fanning
c11434abb4
remove final use of sun.misc.Unsafe (#1995)
* remove final use of sun.misc.Unsafe

* Update PekkoBuild.scala

* update exception handling

* Update Unsafe.java
2025-08-07 09:36:46 +01:00
PJ Fanning
7d5e5daa70
use CompletableFuture#failedStage (#2013) 2025-08-06 10:44:43 +08:00
He-Pin(kerr)
836ae6025e
chore: Remove Java api Option (#2007) 2025-08-05 20:34:45 +08:00
He-Pin(kerr)
08ea94bb4b
chore: Migrate to pekko.japi.function (#2001)
* chore: Remove javaapi.Function

* chore: Remove javaapi.Function2

* chore: Remove javaapi.Procedure

* chore: Remove javaapi.Predicate

* chore: Remove javaapi.Creator

* chore: Remove javaapi.Effect

* chore: Add mima

* Update actor-typed/src/main/mima-filters/2.0.x.backwards.excludes/javaapi-functions.excludes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update stream/src/main/mima-filters/2.0.x.backwards.excludes/javaapi-functions.excludes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update persistence/src/main/mima-filters/2.0.x.backwards.excludes/javaapi-functions.excludes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/mima-filters/2.0.x.backwards.excludes/javaapi-functions.excludes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-05 10:45:25 +08:00
He-Pin(kerr)
7325c729ce
Make use of eq and ne. (#1994)
* chore: make use of eq instead of ==

* chore: make use of ne instead of !=
2025-08-03 17:32:32 +08:00
PJ Fanning
19788583ee
remove more deprecated code (#1984)
* remove more deprecated code

* Update DslFactoriesConsistencySpec.scala

* mima

* remove docs for removed FileIO operations

* more

* remove foreachparallel

* remove deprecated patterns

* tidy up

* Update remove-deprecated-methods.excludes
2025-08-02 13:18:20 +01:00