|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.remoting.samples.multiplex.invoker.MultiplexInvokerServer.SampleInvocationHandler
public static class MultiplexInvokerServer.SampleInvocationHandler
Simple invocation handler implementation. When callback client's are registered, will generate callbacks periodically.
| Constructor Summary | |
|---|---|
MultiplexInvokerServer.SampleInvocationHandler()
|
|
| Method Summary | |
|---|---|
void |
addListener(InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler. |
java.lang.Object |
invoke(InvocationRequest invocation)
called by the remoting server to handle the invocation from client. |
boolean |
isDone()
|
void |
removeListener(InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler. |
void |
run()
Will generate callback messages every second while shouldGenerateCallbacks flag is true. |
void |
setInvoker(ServerInvoker invoker)
set the invoker that owns this handler |
void |
setMBeanServer(javax.management.MBeanServer server)
set the mbean server that the handler can reference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.remoting.ServerInvocationHandler |
|---|
toString |
| Constructor Detail |
|---|
public MultiplexInvokerServer.SampleInvocationHandler()
| Method Detail |
|---|
public java.lang.Object invoke(InvocationRequest invocation)
throws java.lang.Throwable
invoke in interface ServerInvocationHandlerinvocation -
java.lang.Throwablepublic void addListener(InvokerCallbackHandler callbackHandler)
addListener in interface ServerInvocationHandlercallbackHandler - public void removeListener(InvokerCallbackHandler callbackHandler)
removeListener in interface ServerInvocationHandlercallbackHandler - public void run()
run in interface java.lang.Runnablepublic void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer in interface ServerInvocationHandlerserver - public void setInvoker(ServerInvoker invoker)
setInvoker in interface ServerInvocationHandlerinvoker - public boolean isDone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||