/* * Copyright 2007-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.paoding.rose.web.portal; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.concurrent.TimeUnit; /** * 在portal主控制器方法上标注 {@link PortalSetting}设置有关 {@link Portal}、 {@link Pipe} 的参数 * * @author 王志亮 [qieqie.wang@gmail.com] * */ @Target( { ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface PortalSetting { /** * 设置超时等待时间。如果为0或负数表示无限期等待直至所有窗口完毕 * * @return */ public long timeout() default -1; /** * 超时时间设置单位,默认为毫秒 * * @return */ public TimeUnit timeUnit() default TimeUnit.MILLISECONDS; }