+all #16632 Make serialization identifiers configurable in reference.conf
This commit is contained in:
parent
064eea6180
commit
6332f888ce
17 changed files with 76 additions and 44 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
package akka.contrib.pattern.protobuf
|
||||
|
||||
import akka.serialization.Serializer
|
||||
import akka.serialization.BaseSerializer
|
||||
import akka.cluster._
|
||||
import scala.collection.breakOut
|
||||
import akka.actor.{ ExtendedActorSystem, Address }
|
||||
|
|
@ -31,7 +31,7 @@ import scala.collection.immutable.TreeMap
|
|||
/**
|
||||
* Protobuf serializer of DistributedPubSubMediator messages.
|
||||
*/
|
||||
class DistributedPubSubMessageSerializer(val system: ExtendedActorSystem) extends Serializer {
|
||||
class DistributedPubSubMessageSerializer(val system: ExtendedActorSystem) extends BaseSerializer {
|
||||
|
||||
private final val BufferSize = 1024 * 4
|
||||
|
||||
|
|
@ -44,8 +44,6 @@ class DistributedPubSubMessageSerializer(val system: ExtendedActorSystem) extend
|
|||
|
||||
def includeManifest: Boolean = true
|
||||
|
||||
def identifier = 9
|
||||
|
||||
def toBinary(obj: AnyRef): Array[Byte] = obj match {
|
||||
case m: Status ⇒ compress(statusToProto(m))
|
||||
case m: Delta ⇒ compress(deltaToProto(m))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue