2013-10-09 13:11:53 +02:00
|
|
|
/**
|
2014-02-02 19:05:45 -06:00
|
|
|
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
|
2013-10-09 13:11:53 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
option java_package = "akka.persistence.serialization";
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
2013-10-27 08:01:14 +01:00
|
|
|
message PersistentMessageBatch {
|
|
|
|
|
repeated PersistentMessage batch = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-09 13:11:53 +02:00
|
|
|
message PersistentMessage {
|
|
|
|
|
optional PersistentPayload payload = 1;
|
|
|
|
|
optional int64 sequenceNr = 2;
|
|
|
|
|
optional string processorId = 3;
|
2013-12-06 12:48:44 +01:00
|
|
|
optional bool deleted = 4;
|
|
|
|
|
optional int32 redeliveries = 6;
|
|
|
|
|
repeated string confirms = 7;
|
|
|
|
|
optional bool confirmable = 8;
|
2014-01-17 06:58:25 +01:00
|
|
|
optional DeliveredMessage confirmMessage = 9;
|
2013-12-06 12:48:44 +01:00
|
|
|
optional string confirmTarget = 10;
|
|
|
|
|
optional string sender = 11;
|
2013-10-09 13:11:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PersistentPayload {
|
|
|
|
|
required int32 serializerId = 1;
|
|
|
|
|
required bytes payload = 2;
|
|
|
|
|
optional bytes payloadManifest = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-17 06:58:25 +01:00
|
|
|
message DeliveredMessage {
|
2013-10-09 13:11:53 +02:00
|
|
|
optional string processorId = 1;
|
2014-01-17 06:58:25 +01:00
|
|
|
optional string channelId = 2;
|
|
|
|
|
optional int64 persistentSequenceNr = 3;
|
|
|
|
|
optional int64 deliverySequenceNr = 4;
|
|
|
|
|
optional string channel = 5;
|
2013-10-09 13:11:53 +02:00
|
|
|
}
|
2013-11-07 10:45:02 +01:00
|
|
|
|
|
|
|
|
message DeliverMessage {
|
|
|
|
|
optional PersistentMessage persistent = 1;
|
|
|
|
|
optional string destination = 2;
|
|
|
|
|
}
|