Update the maximum serializer identifier reserved for Akka

This commit is contained in:
Nafer Sanabria 2017-02-25 10:17:18 -05:00
parent 5edead2bda
commit 3e016e7887
4 changed files with 7 additions and 7 deletions

View file

@ -652,7 +652,7 @@ akka {
# `akka.actor.serialization-identifiers."FQCN" = ID` # `akka.actor.serialization-identifiers."FQCN" = ID`
# where `FQCN` is fully qualified class name of the serializer implementation # where `FQCN` is fully qualified class name of the serializer implementation
# and `ID` is globally unique serializer identifier number. # and `ID` is globally unique serializer identifier number.
# Identifier values from 0 to 16 are reserved for Akka internal usage. # Identifier values from 0 to 40 are reserved for Akka internal usage.
serialization-identifiers { serialization-identifiers {
"akka.serialization.JavaSerializer" = 1 "akka.serialization.JavaSerializer" = 1
"akka.serialization.ByteArraySerializer" = 4 "akka.serialization.ByteArraySerializer" = 4

View file

@ -39,7 +39,7 @@ trait Serializer {
/** /**
* Completely unique value to identify this implementation of Serializer, used to optimize network traffic. * Completely unique value to identify this implementation of Serializer, used to optimize network traffic.
* Values from 0 to 16 are reserved for Akka internal usage. * Values from 0 to 40 are reserved for Akka internal usage.
*/ */
def identifier: Int def identifier: Int
@ -105,7 +105,7 @@ abstract class SerializerWithStringManifest extends Serializer {
/** /**
* Completely unique value to identify this implementation of Serializer, used to optimize network traffic. * Completely unique value to identify this implementation of Serializer, used to optimize network traffic.
* Values from 0 to 16 are reserved for Akka internal usage. * Values from 0 to 40 are reserved for Akka internal usage.
*/ */
def identifier: Int def identifier: Int

View file

@ -29,7 +29,7 @@ public class SerializationDocTest {
// Pick a unique identifier for your Serializer, // Pick a unique identifier for your Serializer,
// you've got a couple of billions to choose from, // you've got a couple of billions to choose from,
// 0 - 16 is reserved by Akka itself // 0 - 40 is reserved by Akka itself
@Override public int identifier() { @Override public int identifier() {
return 1234567; return 1234567;
} }
@ -80,7 +80,7 @@ public class SerializationDocTest {
// Pick a unique identifier for your Serializer, // Pick a unique identifier for your Serializer,
// you've got a couple of billions to choose from, // you've got a couple of billions to choose from,
// 0 - 16 is reserved by Akka itself // 0 - 40 is reserved by Akka itself
@Override public int identifier() { @Override public int identifier() {
return 1234567; return 1234567;
} }

View file

@ -25,7 +25,7 @@ package docs.serialization {
// Pick a unique identifier for your Serializer, // Pick a unique identifier for your Serializer,
// you've got a couple of billions to choose from, // you've got a couple of billions to choose from,
// 0 - 16 is reserved by Akka itself // 0 - 40 is reserved by Akka itself
def identifier = 1234567 def identifier = 1234567
// "toBinary" serializes the given object to an Array of Bytes // "toBinary" serializes the given object to an Array of Bytes
@ -58,7 +58,7 @@ package docs.serialization {
// Pick a unique identifier for your Serializer, // Pick a unique identifier for your Serializer,
// you've got a couple of billions to choose from, // you've got a couple of billions to choose from,
// 0 - 16 is reserved by Akka itself // 0 - 40 is reserved by Akka itself
def identifier = 1234567 def identifier = 1234567
// The manifest (type hint) that will be provided in the fromBinary method // The manifest (type hint) that will be provided in the fromBinary method