pEpObjCAdapter/PEPSession.h
author buff <andreas@pep-project.org>
Thu, 18 Jan 2018 15:41:10 +0100
changeset 391 3a63cf867f1f
parent 367 7dedf5391bb3
child 573 bc2c03efe133
permissions -rw-r--r--
IOSAD-55 cleans tests
     1 //
     2 //  PEPSession.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Andreas Buff on 11.10.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "PEPSessionProtocol.h"
    12 #import "PEPMessageUtil.h"
    13 
    14 /**
    15  Fake session to handle to the client.
    16 
    17  Assures all calls are handled on the correct internal session for the thread it is called on.
    18  You can instantiate and use this session how often and wherever you want. Also over multiple threads.
    19 
    20  Note: You must call `cleanup()` once before your process gets terminated to be able to gracefully shutdown.
    21  It is the clients responsibility not to make any calls to PEPSession in between the last call
    22  to `cleanup()` and getting terminated.
    23  */
    24 @interface PEPSession : NSObject <PEPSessionProtocol>
    25 
    26 /**
    27  You must call this method once before your process gets terminated to be able to gracefully shutdown.
    28  You must not make any calls to PEPSession in between the last call to `cleanup()` and getting terminated.
    29 
    30  Only for performance reasons: call this method only if you have to.
    31  */
    32 + (void)cleanup;
    33 
    34 @end