*/
private Long determineTimeout(Method method) {
Long ret_timeout = m_proxyHandlerTimeout;
if (!m_proxyHandlerIgnoreAnnotations) {
Timeout annotation = method.getAnnotation(Timeout.class);
if (annotation == null) {
annotation = method.getDeclaringClass().getAnnotation(Timeout.class);
}
if (annotation != null) {
ret_timeout = Long.valueOf(annotation.value());
}
}
return ret_timeout;
}