IT. Expert System.

Java Enterprise Edition (EE)

AroundTimeout


javax.interceptor
Annotation Type AroundTimeout

@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface AroundTimeout

Defines an interceptor method that interposes on timeout methods. May be applied to any non-final, non-static method with a single parameter of type InvocationContext and return type Object of the target class (or superclass) or of any interceptor class.

 @AroundTimeout
 public Object interceptTimeout(InvocationContext ctx) throws Exception { ... }
 

A class may not declare more than one @AroundTimeout method.

An @AroundTimeout method can invoke any component or resource that its corresponding timeout method can invoke.

InvocationContext.getTimer() allows any @AroundTimeout method to retrieve the timer object associated with the timeout.

@AroundTimeout method invocations occur within the same transaction and security context as the timeout method on which they are interposing.

@AroundTimeout methods may throw any exceptions that are allowed by the throws clause of the timeout method on which they are interposing. They may catch and suppress exceptions and recover by calling InvocationContext.proceed().



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1124 / . Delta: 0.01602 с