Captainup  2.4
/Users/yogs/Desktop/CaptainUp/Headers/CPTNotificationsQueue.h
1 //
2 // CPTNotificationsQueue.h
3 // CaptainUp
4 //
5 // Created by David Azriel on 17/07/2016.
6 // Copyright © 2016 Captain Up. All rights reserved.
7 //
8 
9 #ifndef CPTNotificationsQueue_h
10 #define CPTNotificationsQueue_h
11 
12 #import "CPTObject.h"
13 #import "CPTNotificationListener.h"
14 
18 @protocol CPTNotificationsQueue <NSObject>
19 
20 - (void)addListener:(nonnull id<CPTNotificationListener>)listener;
21 
22 - (void)removeListener:(nonnull id<CPTNotificationListener>)listener;
23 
30 - (nullable id<CPTObject>)peek;
31 
39 - (nullable id<CPTObject>)poll;
40 
45 - (NSUInteger)count;
46 
51 - (void)clear;
52 
56 @property (nonatomic, readonly) BOOL isEmpty;
57 
58 @end
59 
60 #endif /* CPTNotificationsQueue_h */
BOOL isEmpty
Definition: CPTNotificationsQueue.h:56
Definition: CPTNotificationsQueue.h:18
Definition: CPTObject.h:17
nullable id< CPTObject > peek()
Definition: CPTNotificationListener.h:15
nullable id< CPTObject > poll()