Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review comments
Browse files Browse the repository at this point in the history
pjfanning committed Jan 17, 2024
1 parent 126b1a4 commit 5bd8e4f
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@

package org.apache.pekko.dispatch

import org.apache.pekko.annotation.InternalApi
import org.apache.pekko.dispatch.ForkJoinExecutorConfigurator.PekkoForkJoinTask

import java.util.concurrent.{ ForkJoinPool, ForkJoinTask, TimeUnit }
@@ -27,6 +28,7 @@ import java.util.concurrent.{ ForkJoinPool, ForkJoinTask, TimeUnit }
* An alternative version of [[ForkJoinExecutorConfigurator.PekkoForkJoinPool]]
* that supports the `maximumPoolSize` feature available in [[java.util.concurrent.ForkJoinPool]] in JDK9+.
*/
@InternalApi
private[dispatch] final class PekkoJdk9ForkJoinPool(
parallelism: Int,
threadFactory: ForkJoinPool.ForkJoinWorkerThreadFactory,
Original file line number Diff line number Diff line change
@@ -18,6 +18,6 @@
package org.apache.pekko.dispatch

private[dispatch] object ForkJoinPoolConstants {
val MaxCap: Int = 0x7FFF // 32767
val DefaultKeepAlive: Long = 60000
final val MaxCap: Int = 0x7FFF // 32767
final val DefaultKeepAlive: Long = 60000
}

0 comments on commit 5bd8e4f

Please sign in to comment.