Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - o tipo de resultado do método callpublic interface Callable<V>
Uma tarefa que retorna um resultado e pode lançar uma exceção. Implementors definem um único método sem argumentos chamado de call
A interface Callable é similar a Runnable,
já que ambas foram projetadas para classes cuja instâncias são potencialmente
executadas por outra thread. Uma Runnable, contudo, não retorna
um resultado e não pode lançar uma checked exception.
A classe <@link Executors} contém métodos utilitários para converter classes
comuns para classes Callable.
Executor| Method Summary | |
|---|---|
V |
call()
Processa um resultado, ou lança uma exceção se não for capaz de processar. |
| Method Detail |
|---|
V call()
throws Exception
Exception - se incapaz de processar o resultado
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.