public class AsyncCall
extends java.lang.Object
Title: AsyncCall.java
Description: 执行服务的异步调用
bboss workgroup
Copyright (c) 2007
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncCall.AsynCallbackRunnable |
static class |
AsyncCall.AsynRunnable
不需要返回结果的模式,也没有回调函数,可以指定超时时间,如果没有指定则run方法中同步条用
否则异步调用,超时时报异常记录日志(这种超时没有特别的意义,只是告诉系统说明服务之星超过摸个时间了)
|
| Constructor and Description |
|---|
AsyncCall() |
| Modifier and Type | Method and Description |
|---|---|
void |
putCallBackService(CallService callService) |
void |
putCallService(CallService callService) |
java.lang.Object |
runCallService(CallService task) |
void |
start() |
boolean |
started() |
void |
stop() |
public void start()
public void stop()
public boolean started()
public void putCallService(CallService callService) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void putCallBackService(CallService callService) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.Object runCallService(CallService task) throws java.lang.Exception
java.lang.Exception