
de.schlichtherle.truezip.fs.nio.file.TempFilePoolService Maven / Gradle / Ivy
/*
* Copyright (C) 2011 Schlichtherle IT Services
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package de.schlichtherle.truezip.fs.nio.file;
import de.schlichtherle.truezip.socket.IOPool;
import de.schlichtherle.truezip.socket.spi.IOPoolService;
import de.schlichtherle.truezip.util.JSE7;
import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
import edu.umd.cs.findbugs.annotations.NonNull;
import net.jcip.annotations.Immutable;
/**
* Contains {@link TempFilePool#INSTANCE}.
*
* @since TrueZIP 7.2
* @author Christian Schlichtherle
* @version $Id$
*/
@Immutable
@DefaultAnnotation(NonNull.class)
public final class TempFilePoolService extends IOPoolService {
@Override
public IOPool> get() {
return TempFilePool.INSTANCE;
}
/**
* {@inheritDoc}
*
* @return {@code 10}
*/
@Override
public int getPriority() {
return JSE7.AVAILABLE ? 100 : -100;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy