|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.hq.transport.util.AsynchronousInvoker
public class AsynchronousInvoker
A helper class for performing asynchronous invocations within the HQ transport layer. Asynchronous invocations are performed using a thread pool executor.
| Constructor Summary | |
|---|---|
AsynchronousInvoker(int poolSize)
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
invoke(AsynchronousInvocationHandler handler)
Make an invocation. |
void |
start()
Start the asynchronous invoker. |
void |
stop()
Stop the asynchronous invoker. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousInvoker(int poolSize)
poolSize - The thread pool size.
java.lang.IllegalArgumentException - if the pool size is less than or equal to zero.| Method Detail |
|---|
public void start()
public void stop()
RejectedExecutionException.
Guaranteed invocations will still be allowed but will only consist of
persisting the invocation for later execution, not making the invocation
itself.
public void invoke(AsynchronousInvocationHandler handler)
handler - The invocation handler.
java.util.concurrent.RejectedExecutionException - if the invoker is stopped
and delivery is not guaranteed.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||