Merge pull request #30514 from ygree/context-propagation-improvement
ContextPropagation enhancement
This commit is contained in:
commit
c1228ce8b3
3 changed files with 9 additions and 2 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# internal
|
||||
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.impl.ContextPropagation.currentContext")
|
||||
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.impl.ContextPropagation.resumeContext")
|
||||
|
|
@ -9,15 +9,17 @@ import akka.annotation.InternalApi
|
|||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@InternalApi private[akka] trait ContextPropagation {
|
||||
@InternalApi trait ContextPropagation {
|
||||
def suspendContext(): Unit
|
||||
def resumeContext(): Unit
|
||||
def currentContext(): AnyRef
|
||||
def resumeContext(context: AnyRef): Unit
|
||||
}
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@InternalApi private[akka] object ContextPropagation {
|
||||
@InternalApi object ContextPropagation {
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
|
|
@ -28,4 +30,6 @@ import akka.annotation.InternalApi
|
|||
private[akka] final class ContextPropagationImpl extends ContextPropagation {
|
||||
def suspendContext(): Unit = ()
|
||||
def resumeContext(): Unit = ()
|
||||
def currentContext(): AnyRef = null
|
||||
def resumeContext(context: AnyRef): Unit = ()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue