Package freenet.client.async.PersistentJobRunner

Examples of freenet.client.async.PersistentJobRunner.CheckpointLock.unlock()


                            }
                            parent.finishedEncoding(SplitFileFetcherCrossSegmentStorage.this);
                        }
                    } finally {
                        // Callback is part of the persistent job, unlock *after* calling it.
                        if(lock != null) lock.unlock(false, prio);
                    }
                }
                return true;
            }
           
View Full Code Here


            t.printStackTrace();
            Logger.error(this, "Failed migrating from old database: "+t, t);
            return; // Something went seriously wrong, likely a bug. Don't delete.
        } finally {
            if(lock != null)
                lock.unlock(false, NativeThread.currentThread().getPriority());
        }
       
        // The global queue is the important bit. Write the progress so far.
        System.out.println("Writing migrated global queue");
        try {
View Full Code Here

            t.printStackTrace();
            Logger.error(this, "Failed migrating from old database: "+t, t);
            return; // Something went seriously wrong, likely a bug. Don't delete.
        } finally {
            if(lock != null)
                lock.unlock(false, NativeThread.currentThread().getPriority());
        }
       
        System.out.println("Writing migrated application queues");
        // Write now as well.
        try {
View Full Code Here

                        // In particular, if we failed, we may need to complete cancellation, and we
                        // can't do that until both tryDecode=false and parent gets the callback.
                        if(!shutdown)
                            parent.finishedEncoding(SplitFileFetcherSegmentStorage.this);
                    } finally {
                        if(lock != null) lock.unlock(false, prio);
                    }
                }
                return true;
            }
           
View Full Code Here

                            }
                            parent.onFinishedEncoding(SplitFileInserterSegmentStorage.this);
                        }
                    } finally {
                        // Callback is part of the persistent job, unlock *after* calling it.
                        if(lock != null) lock.unlock(false, prio);
                    }
                }
                return true;
            }
           
View Full Code Here

                            }
                            parent.onFinishedEncoding(SplitFileInserterCrossSegmentStorage.this);
                        }
                    } finally {
                        // Callback is part of the persistent job, unlock *after* calling it.
                        if(lock != null) lock.unlock(false, prio);
                    }
                }
                return true;
            }
           
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.