public void getDistributedObjects ( Collection < DistributedObject > result ) { Collection < DistributedObjectFuture > futures = proxies . values ( ) ; for ( DistributedObjectFuture future : futures ) { if ( ! future . isSetAndInitialized ( ) ) { continue ; } try { DistributedObject object = future . get ( ) ; result . add ( object ) ; } catch ( Throwable ignored ) { // ignore if proxy creation failed ignore ( ignored ) ; } } }
Gets the DistributedObjects in this registry . The result is written into result .