1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/ATActor.h
2014-07-10 18:11:09 +04:00

29 lines
568 B
Objective-C

#import <Foundation/Foundation.h>
#import "ATMessageReceiver.h"
@class ATActorSystem;
@class ATQueue;
extern id ATActorMessageStart;
extern id ATActorMessageStop;
@interface ATActor : NSObject <ATMessageReceiver>
- (instancetype)initWithActorSystem:(ATActorSystem *)actorSystem path:(NSString *)path;
- (bool)executesOnDedicatedQueue;
- (NSString *)path;
- (ATActorSystem *)actorSystem;
- (ATQueue *)queue;
- (bool)isRunning;
- (void)processMessage:(id)message sender:(id<ATMessageReceiver>)sender;
- (void)onStart;
- (void)onStop;
- (void)onTerminate;
@end