public interface RefManagerService extends SCIFIOService
Serviceimplementation for helping with
manage(Object, Object...) method creates and registers a
CleaningRef instance with this service, using the given object as its
referent, which allows the
CleaningRef.cleanup() method to be handled
on a separate thread.
|Modifier and Type||Method and Description|
If there is a corresponding
CleaningReffor the given object, it will be created using the given object as its referent and attached to a reference queue. A separate thread will poll the queue, and whenever a reference is dequeued its
CleaningRef.cleanup()method will be invoked.
NB: no more than one of a given Reference type will be managed for a given referent. An object shouldn't require more than one cleanup for a given usage.
toManage- Instance to manage via
Copyright © 2015–2017 SCIFIO. All rights reserved.