org.rococoa.internal
Class AutoreleaseBatcher
java.lang.Object
org.rococoa.internal.OperationBatcher
org.rococoa.internal.AutoreleaseBatcher
public class AutoreleaseBatcher
- extends OperationBatcher
Used by NSObjectInvocationHandler to make sure that there is an NSAutoreleasePool
available when NSObject's are finalized, but not pay the price of creating one
per call.
Take care, this is tested but unproven code (2009/08).
- Author:
- duncan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoreleaseBatcher
public AutoreleaseBatcher(int batchSize)
forThread
public static AutoreleaseBatcher forThread(int batchSize)
operation
protected void operation()
- Specified by:
operation
in class OperationBatcher
reset
protected void reset()
- Specified by:
reset
in class OperationBatcher
Copyright © 2012. All Rights Reserved.