IT. Expert System.

Java Enterprise Edition (EE)

AsyncResult


javax.ejb
Class AsyncResult<V>

java.lang.Object
  javax.ejb.AsyncResult<V>
All Implemented Interfaces:
java.util.concurrent.Future<V>
public final class AsyncResult<V>
extends java.lang.Object
implements java.util.concurrent.Future<V>

Wraps the result of an asynchronous method call as a Future object, preserving compatability with the business interface signature. The value specified in the constructor will be retrieved by the container and made available to the client. Note that this object is not passed to the client. It is merely a convenience for providing the result value to the container. Therefore, none of its instance methods should be called by the application.

Constructor Summary
AsyncResult(V result)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
          This method should not be called.
 V get()
          This method should not be called.
 V get(long timeout, java.util.concurrent.TimeUnit unit)
          This method should not be called.
 boolean isCancelled()
          This method should not be called.
 boolean isDone()
          This method should not be called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncResult

public AsyncResult(V result)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
This method should not be called. See Class-level comments.

Specified by:
cancel in interface java.util.concurrent.Future<V>

isCancelled

public boolean isCancelled()
This method should not be called. See Class-level comments.

Specified by:
isCancelled in interface java.util.concurrent.Future<V>

isDone

public boolean isDone()
This method should not be called. See Class-level comments.

Specified by:
isDone in interface java.util.concurrent.Future<V>

get

public V get()
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException
This method should not be called. See Class-level comments.

Specified by:
get in interface java.util.concurrent.Future<V>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

get

public V get(long timeout,
             java.util.concurrent.TimeUnit unit)
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException,
             java.util.concurrent.TimeoutException
This method should not be called. See Class-level comments.

Specified by:
get in interface java.util.concurrent.Future<V>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException


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: 664 / . Delta: 0.02481 с