pekko/akka-persistence/src/main/protobuf/MessageFormats.proto

37 lines
1 KiB
Protocol Buffer
Raw Normal View History

/**
* Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
*/
option java_package = "akka.persistence.serialization";
option optimize_for = SPEED;
message PersistentMessage {
optional PersistentPayload payload = 1;
optional int64 sequenceNr = 2;
!per #15230 rename processorId => persistentId * This is NOT binary compatible, we're in an *experimental* module. * disabled binary compat checks for package akka.persistence * Source compatibility is retained, but users should migrate do the new method name ASAP. * Plugin APIs were migrated in a way that allows the old plugins to compile agains 2.3.4 without having to change anything. Hopefuly this will help authors migrate to 2.3.4 sooner. This is only source level compatible, not binary compatible. * added deprecation warnings on all processorId methods and provided bridges where possible * for users, the migration should be painless, they can still override the old method, and it'll work. But we encourage them to move to persistenceId; All delegation code will have to be removed afterwards ofc. Conflicts: akka-persistence/src/main/scala/akka/persistence/Channel.scala akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala akka-persistence/src/main/scala/akka/persistence/Persistent.scala akka-persistence/src/main/scala/akka/persistence/PersistentChannel.scala akka-persistence/src/main/scala/akka/persistence/Processor.scala akka-persistence/src/main/scala/akka/persistence/Snapshot.scala akka-persistence/src/main/scala/akka/persistence/journal/AsyncWriteProxy.scala akka-persistence/src/main/scala/akka/persistence/journal/inmem/InmemJournal.scala akka-persistence/src/main/scala/akka/persistence/journal/leveldb/LeveldbKey.scala akka-persistence/src/main/scala/akka/persistence/snapshot/SnapshotStore.scala akka-persistence/src/test/scala/akka/persistence/serialization/SerializerSpec.scala project/AkkaBuild.scala
2014-06-23 14:33:35 +02:00
optional string persistenceId = 3;
optional bool deleted = 4;
// optional int32 redeliveries = 6; // Removed in 2.4
// repeated string confirms = 7; // Removed in 2.4
// optional bool confirmable = 8; // Removed in 2.4
// optional DeliveredMessage confirmMessage = 9; // Removed in 2.4
// optional string confirmTarget = 10;
optional string sender = 11;
}
message PersistentPayload {
required int32 serializerId = 1;
required bytes payload = 2;
optional bytes payloadManifest = 3;
}
message AtLeastOnceDeliverySnapshot {
message UnconfirmedDelivery {
required int64 deliveryId = 1;
required string destination = 2;
required PersistentPayload payload = 3;
}
required int64 currentDeliveryId = 1;
repeated UnconfirmedDelivery unconfirmedDeliveries = 2;
}