org.clazzes.remoting
Interface CallbackInvocationContext
- All Superinterfaces:
- InvocationContext
- All Known Implementing Classes:
- ServerConnectionHandler
public interface CallbackInvocationContext
- extends InvocationContext
An invocation context, which allows callbacks to the originating invoker.
- Author:
- wglas
Method Summary |
java.lang.Object |
callBack(java.rmi.server.UID callbackUID,
java.lang.Object arg,
java.util.Map<java.lang.String,java.lang.Object> metadata)
|
Broadcastable |
getBroadcastable()
|
callBack
java.lang.Object callBack(java.rmi.server.UID callbackUID,
java.lang.Object arg,
java.util.Map<java.lang.String,java.lang.Object> metadata)
throws java.lang.reflect.InvocationTargetException,
java.io.IOException
- Parameters:
callbackUID
- The ID of the callback as returned by
RemoteInvoker.registerCallback(InvocationHandler)
.arg
- The argument, which is passed to the InvocationHandler
.metadata
- The metadata passed to the InvocationHandler
.
- Returns:
- The result of the callback
- Throws:
java.lang.reflect.InvocationTargetException
- If InvocationHandler.invoke(InvocationContext, Object, Map)
on the server threw an exception. The exception of the invoker may
be retrieved by InvocationTargetException.getCause()
.
java.io.IOException
- Upon transport errors.
getBroadcastable
Broadcastable getBroadcastable()
- Returns:
- The broadcast context for initiating broadcasts to all connected clients.
Copyright © 2010. All Rights Reserved.