Class InMemoryStorageFactory
In memory storage factory implementation.
Inheritance
System.Object
InMemoryStorageFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.FixEngine.Storage
Assembly: FixAntenna.Core.dll
Syntax
public class InMemoryStorageFactory : IStorageFactory
Constructors
InMemoryStorageFactory(Config)
Declaration
public InMemoryStorageFactory(Config configuration)
Parameters
Type | Name | Description |
---|---|---|
Config | configuration |
Methods
GetIncomingMessageStorage(SessionParameters)
Get incoming message storage instance.
Declaration
public virtual IMessageStorage GetIncomingMessageStorage(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details |
Returns
Type | Description |
---|---|
IMessageStorage | the incoming message storage |
GetOutgoingMessageStorage(SessionParameters)
Get outgoing message storage instance.
Declaration
public virtual IMessageStorage GetOutgoingMessageStorage(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details |
Returns
Type | Description |
---|---|
IMessageStorage | the outgoing message storage |
GetQueue(SessionParameters)
Create and return a InMemoryQueue instance.
Declaration
public virtual IQueue<FixMessageWithType> GetQueue(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | the session parameters |
Returns
Type | Description |
---|---|
IQueue<FixMessageWithType> |
LoadSessionParameters(SessionParameters, FixSessionRuntimeState)
Save session parameters.
Declaration
public virtual bool LoadSessionParameters(SessionParameters sessionParameters, FixSessionRuntimeState state)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
FixSessionRuntimeState | state |
Returns
Type | Description |
---|---|
System.Boolean | true if parameters loaded |
RestoreSessionParameters(SessionParameters)
Declaration
public virtual void RestoreSessionParameters(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters |
SaveSessionParameters(SessionParameters, FixSessionRuntimeState)
Save session parameters.
Declaration
public virtual void SaveSessionParameters(SessionParameters details, FixSessionRuntimeState state)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details | |
FixSessionRuntimeState | state |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |