C# Class Woopsa.NotificationConcurrentQueue

Show file Open project: woopsa-protocol/Woopsa Class Usage Examples

Public Methods

Method Description
Enqueue ( BaseWoopsaSubscriptionServiceSubscription subscription, IWoopsaNotification notification, bool &itemDiscarded ) : void
NotificationConcurrentQueue ( int maxQueueSize ) : System
PeekNotifications ( int maxCount ) : IWoopsaNotification[]
RemoveNotificationsForSubscription ( int subscriptionId ) : void
RemoveOlder ( int notificationIdAgeOrigin, int notificationIdToRemoveUpTo ) : int

Private Methods

Method Description
notificationAge ( int notificationIdOrigin, int notificationId ) : int

Method Details

Enqueue() public method

public Enqueue ( BaseWoopsaSubscriptionServiceSubscription subscription, IWoopsaNotification notification, bool &itemDiscarded ) : void
subscription BaseWoopsaSubscriptionServiceSubscription
notification IWoopsaNotification
itemDiscarded bool
return void

NotificationConcurrentQueue() public method

public NotificationConcurrentQueue ( int maxQueueSize ) : System
maxQueueSize int
return System

PeekNotifications() public method

public PeekNotifications ( int maxCount ) : IWoopsaNotification[]
maxCount int
return IWoopsaNotification[]

RemoveNotificationsForSubscription() public method

public RemoveNotificationsForSubscription ( int subscriptionId ) : void
subscriptionId int
return void

RemoveOlder() public method

public RemoveOlder ( int notificationIdAgeOrigin, int notificationIdToRemoveUpTo ) : int
notificationIdAgeOrigin int
notificationIdToRemoveUpTo int
return int