public void flush(boolean force) {
		// TODO Auto-generated method stub
		if(atomicBoolean.get() == true)
			return;
		
		if(!force && this.estimateFileSize - this.fileSize < 1024)
			return;
		
		atomicBoolean.set(true);
		if(output != null){
			try {
				this.fileDescriptor.sync();
				fileSize=estimateFileSize;
			} catch (SyncFailedException e) {
				// TODO Auto-generated catch block
			}
		}
		atomicBoolean.set(false);
	}