message-db-0.1.0.0: Client library for Message-DB installed in PostgreSQL.
Safe HaskellNone
LanguageHaskell2010

MessageDb.Subscription.PositionStrategy

Description

Strategies for saving subscription position.

Synopsis

Documentation

data PositionStrategy Source #

Strategy for saving and restoring a subscription's position.

dontSave :: PositionStrategy Source #

Start at zero and don't ever save the position.

newtype PositionUpdateInterval Source #

Minimum difference between the current position and last position saved to save the position.

Instances

Instances details
Enum PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Eq PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Integral PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Num PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Ord PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Real PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

Show PositionUpdateInterval Source # 
Instance details

Defined in MessageDb.Subscription.PositionStrategy

writeToStream :: WithConnection -> PositionUpdateInterval -> StreamName -> PositionStrategy Source #

Write the subscription's position to a stream.