File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/alibaba/dcm Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,8 @@ public static void clearDnsCache() {
217217 * <li> {@code -1} means never expired.(In effect, all negative value)</li>
218218 * <li> {@code 0} never cached.</li>
219219 * </ul>
220+ * @throws DnsCacheManipulatorException Operation fail
221+ * @since 1.3.0
220222 */
221223 public static int getDnsCachePolicy () {
222224 try {
@@ -237,6 +239,7 @@ public static int getDnsCachePolicy() {
237239 * <li> {@code 0} never cached.</li>
238240 * </ul>
239241 * @throws DnsCacheManipulatorException Operation fail
242+ * @since 1.3.0
240243 */
241244 public static void setDnsCachePolicy (int cacheSeconds ) {
242245 try {
@@ -255,6 +258,8 @@ public static void setDnsCachePolicy(int cacheSeconds) {
255258 * <li> {@code -1} means never expired.(In effect, all negative value)</li>
256259 * <li> {@code 0} never cached.</li>
257260 * </ul>
261+ * @throws DnsCacheManipulatorException Operation fail
262+ * @since 1.3.0
258263 */
259264 public static int getDnsNegativeCachePolicy () {
260265 try {
@@ -273,6 +278,7 @@ public static int getDnsNegativeCachePolicy() {
273278 * <li> {@code 0} never cached.</li>
274279 * </ul>
275280 * @throws DnsCacheManipulatorException Operation fail
281+ * @since 1.3.0
276282 */
277283 public static void setDnsNegativeCachePolicy (int negativeCacheSeconds ) {
278284 try {
You can’t perform that action at this time.
0 commit comments