Merge pull request #15115 from akka/wip-15102-all-systems-noise-patriknw
=act #15102 No serialization needed for EventStreamUnsubscriber
This commit is contained in:
commit
7202769f6e
3 changed files with 27 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -73,4 +73,5 @@ tm*.log
|
|||
tm.out
|
||||
worker*.log
|
||||
*-shim.sbt
|
||||
test-output
|
||||
|
||||
|
|
|
|||
|
|
@ -274,6 +274,19 @@ private[akka] abstract class ActorRefWithCell extends InternalActorRef { this: A
|
|||
private[akka] case object Nobody extends MinimalActorRef {
|
||||
override val path: RootActorPath = new RootActorPath(Address("akka", "all-systems"), "/Nobody")
|
||||
override def provider = throw new UnsupportedOperationException("Nobody does not provide")
|
||||
|
||||
private val serialized = new SerializedNobody
|
||||
|
||||
@throws(classOf[java.io.ObjectStreamException])
|
||||
override protected def writeReplace(): AnyRef = serialized
|
||||
}
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@SerialVersionUID(1L) private[akka] class SerializedNobody extends Serializable {
|
||||
@throws(classOf[java.io.ObjectStreamException])
|
||||
private def readResolve(): AnyRef = Nobody
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -782,6 +782,19 @@ object Logging {
|
|||
override def !(message: Any)(implicit sender: ActorRef = Actor.noSender): Unit =
|
||||
if (message == null) throw new InvalidMessageException("Message is null")
|
||||
else print(message)
|
||||
|
||||
@throws(classOf[java.io.ObjectStreamException])
|
||||
override protected def writeReplace(): AnyRef = serializedStandardOutLogger
|
||||
}
|
||||
|
||||
private val serializedStandardOutLogger = new SerializedStandardOutLogger
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@SerialVersionUID(1L) private[akka] class SerializedStandardOutLogger extends Serializable {
|
||||
@throws(classOf[java.io.ObjectStreamException])
|
||||
private def readResolve(): AnyRef = Logging.StandardOutLogger
|
||||
}
|
||||
|
||||
val StandardOutLogger = new StandardOutLogger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue