developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  ObjectPool.h
//  mtopext
//
//  Created by sihai on 5/12/14.
//  Copyright (c) 2014 Taobao. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
@interface ObjectPool : NSObject
 
/*!
 * 获取实例
 * @return
 *              MtopServerPool
 */
+ (ObjectPool*) getInstance;
 
/*!
 * pending
 * @param obj
 * @param timeout
 * @return
 *              obj id
 */
- (NSString*) pending: (id) obj timeout: (long) timeout;
 
/*!
 * 移除之前pending的对象
 * @param oid
 */
- (void) remove: (NSString*) oid;
 
@end