pjfanning commented on code in PR #145: URL: https://github.com/apache/incubator-pekko-connectors/pull/145#discussion_r1223975591
########## jms/src/main/scala/org/apache/pekko/stream/connectors/jms/impl/GraphStageCompanion.scala: ########## @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * license agreements; and to You under the Apache License, version 2.0: + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * This file is part of the Apache Pekko project, derived from Akka. + */ + +package org.apache.pekko.stream.connectors.jms.impl + +import org.apache.pekko +import pekko.annotation.InternalApi +import pekko.stream.Materializer +import pekko.stream.connectors.jms.Destination + +import scala.concurrent.duration.FiniteDuration + +/** + * Exposes some protected methods from [[pekko.stream.stage.GraphStage]] + * that are not accessible when using Scala3 compiler. + */ +@InternalApi +private[impl] trait GraphStageCompanion { + def graphStageMaterializer: Materializer + + def graphStageDestination: Destination + + def scheduleOnceOnGraphStage(timerKey: Any, delay: FiniteDuration): Unit Review Comment: This signature is taken from the function I am delegating to. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
