29 return static_cast<const char*
>(message.data());
34 return static_cast<const char*
>(
advanceByBytes(message.data(), message.size()));
42 throw std::runtime_error(
"Unknown message type");
51 sessionCreationTime_()
56 std::clog <<
"\nClose the session storage (doBackup=" << doBackup <<
").\n";
61 inboundMessages_.clear();
62 outboundMessages_.clear();
77 std::clog <<
"\nSet inSeqNum to " << msgSeqNum <<
".\n";
78 inSeqNum_ = msgSeqNum;
88 std::clog <<
"\nSet outSeqNum to " << msgSeqNum <<
".\n";
89 outSeqNum_ = msgSeqNum;
94 return sessionCreationTime_;
99 std::clog <<
"\nSet sessionCreationTime to " << time <<
"\n";
100 sessionCreationTime_ = time;
105 std::clog <<
"\nStore inbound message:\n";
106 storeMessage(inboundMessages_, message);
108 inSeqNum_ = msgSeqNum;
113 std::clog <<
"\nStore outbound message:\n";
114 storeMessage(outboundMessages_, message);
116 outSeqNum_ = msgSeqNum;
The time point without the time-zone information.
void flush() override
Flushes all internal buffers.
void storeOutboundMessage(const NetworkMessage message, SeqNumber msgSeqNum, Timestamp messageSendingUtcTimestamp=Timestamp()) override
Logs the given outgoing message.
Timestamp sessionCreationTime() const override
std::vector< char > Message
void close(bool doBackup=false) override
Closes the storage.
void warmup(size_t, Timestamp) override
Warmup the storage.
SeqNumber outSeqNum() const override
SeqNumber inSeqNum() const override
std::list< Message > Messages
void storeInboundMessage(const NetworkMessage message, SeqNumber msgSeqNum, Timestamp messageReceivingUtcTimestamp=Timestamp()) override
Logs the given inbound message.
const std::string & id() const override
bool processTypified(SbeMessage binary, Processor &&processor)
Casts a given binary message according to template/type information and processes the cast messages b...
ONIXS_ICEBOE_FORCEINLINE Type * advanceByBytes(Type *pointer, ptrdiff_t distance) noexcept
Advances the pointer to a given offset (distance) in bytes.
decltype(std::declval< const Messaging::SbeMessage & >().sequenceId()) SeqNumber