OnixS C++ CME iLink 3 Binary Order Entry Handler 1.18.9
API Documentation
Loading...
Searching...
No Matches
SessionStorage.h
Go to the documentation of this file.
1#pragma once
2
3/*
4* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
5*
6* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
7* and international copyright treaties.
8*
9* Access to and use of the software is governed by the terms of the applicable OnixS Software
10* Services Agreement (the Agreement) and Customer end user license agreements granting
11* a non-assignable, non-transferable and non-exclusive license to use the software
12* for it's own data processing purposes under the terms defined in the Agreement.
13*
14* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
15* of this source code or associated reference material to any other location for further reproduction
16* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
17*
18* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
19* the terms of the Agreement is a violation of copyright law.
20*/
21
27
28#include <string>
29#include <vector>
30
31namespace OnixS {
32namespace CME {
33namespace iLink3 {
34
35using namespace OnixS::CME::iLink3::Messaging;
36
63
66{
67public:
70
72 virtual const std::string & id() const = 0;
73
75 virtual UInt64 uuid() const = 0;
76
78 virtual void uuid(UInt64 value) = 0;
79
86 virtual UInt64 previousUuid() const = 0;
87
89 virtual void previousUuid(UInt64 value) = 0;
90
92 virtual SeqNumber inSeqNum() const = 0;
93
95 virtual void inSeqNum(SeqNumber msgSeqNum) = 0;
96
102 virtual SeqNumber previousSeqNum() const = 0;
103
105 virtual void previousSeqNum(SeqNumber msgSeqNum) = 0;
106
108 virtual SeqNumber outSeqNum() const = 0;
109
111 virtual void outSeqNum(SeqNumber msgSeqNum) = 0;
112
115 virtual bool negotiated() const = 0;
116
120 virtual void negotiated(bool negotiated) = 0;
121
123 virtual Timestamp sessionCreationTime() const = 0;
124
127
129 virtual void close(bool doBackup = false) = 0;
130
132 virtual void storeInboundMessage(const NetworkMessage& message, SeqNumber msgSeqNum, Timestamp messageReceivingUtcTimestamp = Timestamp()) = 0;
133
135 virtual void storeOutboundMessage(const NetworkMessage& message, SeqNumber msgSeqNum, Timestamp messageSendingUtcTimestamp = Timestamp()) = 0;
136
138 virtual void flush() = 0;
139
141 virtual void warmup(size_t messageSize, Timestamp ts = Timestamp()) = 0;
142};
143
144}
145}
146}
#define ONIXS_ILINK3_EXPORTED
Definition Compiler.h:175
#define ONIXS_ILINK3_DEFAULT
Definition Compiler.h:202
The time point without the time-zone information.
Definition Time.h:468
virtual void close(bool doBackup=false)=0
Closes the storage.
virtual bool negotiated() const =0
virtual void storeInboundMessage(const NetworkMessage &message, SeqNumber msgSeqNum, Timestamp messageReceivingUtcTimestamp=Timestamp())=0
Logs the given inbound message.
virtual void flush()=0
Flushes all internal buffers.
virtual UInt64 previousUuid() const =0
virtual UInt64 uuid() const =0
virtual void warmup(size_t messageSize, Timestamp ts=Timestamp())=0
Warmup the storage.
virtual void storeOutboundMessage(const NetworkMessage &message, SeqNumber msgSeqNum, Timestamp messageSendingUtcTimestamp=Timestamp())=0
Logs the given outgoing message.
virtual ~SessionStorage()=default
Destructor.
virtual SeqNumber inSeqNum() const =0
virtual Timestamp sessionCreationTime() const =0
virtual SeqNumber previousSeqNum() const =0
virtual SeqNumber outSeqNum() const =0
Messaging::UInt32 SeqNumber
Definition Messaging.h:60
static Enum parse(const std::string &)
@ Undefined
Undefined Session Storage.
@ FileBased
File-based Session Storage.
@ AsyncFileBased
Asynchronous File-Based Session Storage.
@ Pluggable
Pluggable Session Storage.
@ MemoryBased
Memory-based Session Storage.
static const char * toString(SessionStorageType::Enum)