001/*
002 * ====================================================================
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 * ====================================================================
020 *
021 * This software consists of voluntary contributions made by many
022 * individuals on behalf of the Apache Software Foundation.  For more
023 * information on the Apache Software Foundation, please see
024 * <http://www.apache.org/>.
025 *
026 */
027
028package org.apache.http.nio.params;
029
030/**
031 * Parameter names for I/O reactors.
032 *
033 * @since 4.0
034 *
035 * @deprecated (4.2) use {@link org.apache.http.impl.nio.reactor.IOReactorConfig}
036 */
037@Deprecated
038public interface NIOReactorPNames {
039
040    /**
041     * Determines the size of the content input/output buffers used
042     * to buffer data while receiving or transmitting HTTP messages.
043     * <p>
044     * This parameter expects a value of type {@link Integer}.
045     * </p>
046     */
047    public static final String CONTENT_BUFFER_SIZE = "http.nio.content-buffer-size";
048
049    /**
050     * Determines the time interval in milliseconds at which the
051     * I/O reactor wakes up to check for timed out sessions and session requests.
052     * <p>
053     * This parameter expects a value of type {@link Long}.
054     * </p>
055     */
056    public static final String SELECT_INTERVAL = "http.nio.select-interval";
057
058    /**
059     * Determines the grace period the I/O reactors are expected to block
060     * waiting for individual worker threads to terminate cleanly.
061     * <p>
062     * This parameter expects a value of type {@link Long}.
063     * </p>
064     */
065    public static final String GRACE_PERIOD = "http.nio.grace-period";
066
067    /**
068     * Determines whether interestOps() queueing is enabled for the I/O reactors.
069     * <p>
070     * This parameter expects a value of type {@link Boolean}.
071     * </p>
072     *
073     * @since 4.1
074     */
075    public static final String INTEREST_OPS_QUEUEING = "http.nio.interest-ops-queueing";
076
077}