MaxRetries.java revision 2362
2362N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2342N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2342N/A * This code is free software; you can redistribute it and/or modify it 2342N/A * under the terms of the GNU General Public License version 2 only, as 2342N/A * published by the Free Software Foundation. 2342N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2342N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2342N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2342N/A * version 2 for more details (a copy is included in the LICENSE file that 2342N/A * You should have received a copy of the GNU General Public License version 2342N/A * 2 along with this work; if not, write to the Free Software Foundation, 2342N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 2342N/A * One round of test for max_retries and timeout. 2342N/A * @param timeout the expected timeout 2342N/A * @param count the expected total try 2342N/A * One round of test for udp_preference_limit. 2342N/A * @param proto the expected protocol used 2342N/A * Set udp_preference_limit for global and realm 2342N/A * Set max_retries and timeout value for realm. The global value is always 2342N/A * @param value max_retries and timeout/1000 for a realm, -1 means none. 2342N/A // Add a bad KDC as the first candidate