Package freenet.client.events

Examples of freenet.client.events.FinishedCompressionEvent


    // We do NOT need to switch threads here: the actual compression is done by InsertCompressor on the RealCompressor thread,
    // which then switches either to the database thread or to a new executable to run this method.
   
    if(parent == cb) {
      short codecID = bestCodec == null ? -1 : bestCodec.metadataID;
      ctx.eventProducer.produceEvent(new FinishedCompressionEvent(codecID, origSize, bestCompressedDataSize), context);
      if(logMINOR) Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this+" data = "+data);
    }
   
    // Insert it...
    short codecNumber = bestCodec == null ? -1 : bestCodec.metadataID;
View Full Code Here


                generatedMetadata.onResume(context);
                put.onGeneratedMetadata(generatedMetadata, null);
            }
            if(putFailedMessage != null) {
                // HACK! We don't keep anything from the FinishedCompressionEvent anyway ...
                put.receive(new FinishedCompressionEvent(-1, 0, 0), context);
                put.onFailure(putFailedMessage.getException(), null);
            } else if(succeeded) {
                put.onSuccess(null);
            }
        }
View Full Code Here

                generatedMetadata.onResume(context);
                put.onGeneratedMetadata(generatedMetadata, null);
            }
            if(putFailedMessage != null) {
                // HACK! We don't keep anything from the FinishedCompressionEvent anyway ...
                put.receive(new FinishedCompressionEvent(-1, 0, 0), context);
                put.onFailure(putFailedMessage.getException(), null);
            } else if(succeeded) {
                put.onSuccess(null);
            }
        }
View Full Code Here

TOP

Related Classes of freenet.client.events.FinishedCompressionEvent

Copyright © 2018 www.massapicom. 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.