2019-01-02 18:55:26 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com>
|
2013-10-09 13:11:53 +02:00
|
|
|
*/
|
|
|
|
|
|
2019-08-15 16:43:19 +01:00
|
|
|
syntax = "proto2";
|
|
|
|
|
|
2013-10-09 13:11:53 +02:00
|
|
|
option java_package = "akka.persistence.serialization";
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
|
|
|
|
message PersistentMessage {
|
|
|
|
|
optional PersistentPayload payload = 1;
|
|
|
|
|
optional int64 sequenceNr = 2;
|
2014-06-23 14:33:35 +02:00
|
|
|
optional string persistenceId = 3;
|
2015-06-25 07:44:52 +02:00
|
|
|
optional bool deleted = 4; // not used in new records from 2.4
|
2014-12-08 11:02:14 +01:00
|
|
|
// 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
|
2015-06-16 15:17:48 +02:00
|
|
|
// optional string confirmTarget = 10; // Removed in 2.4
|
|
|
|
|
optional string sender = 11; // not stored in journal, needed for remote serialization
|
2015-05-29 18:20:51 +02:00
|
|
|
optional string manifest = 12;
|
2015-06-25 11:38:51 +02:00
|
|
|
optional string writerUuid = 13;
|
2013-10-09 13:11:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PersistentPayload {
|
|
|
|
|
required int32 serializerId = 1;
|
|
|
|
|
required bytes payload = 2;
|
|
|
|
|
optional bytes payloadManifest = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-23 21:01:36 +02:00
|
|
|
message AtomicWrite {
|
|
|
|
|
repeated PersistentMessage payload = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-03 15:10:56 +02:00
|
|
|
message AtLeastOnceDeliverySnapshot {
|
|
|
|
|
message UnconfirmedDelivery {
|
|
|
|
|
required int64 deliveryId = 1;
|
|
|
|
|
required string destination = 2;
|
|
|
|
|
required PersistentPayload payload = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required int64 currentDeliveryId = 1;
|
|
|
|
|
repeated UnconfirmedDelivery unconfirmedDeliveries = 2;
|
|
|
|
|
}
|
2014-11-09 14:12:36 +02:00
|
|
|
|
|
|
|
|
message PersistentStateChangeEvent {
|
|
|
|
|
required string stateIdentifier = 1;
|
2016-04-14 02:31:33 +03:00
|
|
|
optional string timeout = 2; //not used in new records from 2.4.5
|
|
|
|
|
optional int64 timeoutNanos = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PersistentFSMSnapshot {
|
|
|
|
|
required string stateIdentifier = 1;
|
|
|
|
|
required PersistentPayload data = 2;
|
|
|
|
|
optional int64 timeoutNanos = 3;
|
2014-11-09 14:12:36 +02:00
|
|
|
}
|