2
* JBoss, Home of Professional Open Source
3
* Copyright 2005, JBoss Inc., and individual contributors as indicated
4
* by the @authors tag. See the copyright.txt in the distribution for a
5
* full listing of individual contributors.
7
* This is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
12
* This software is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this software; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
22
package org.jboss.remoting.callback;
26
* AsynchInvokerCallbackHandler extends InvokerCallbackHandler with
27
* asynchronous callback handling.
29
* @author <a href="ron.sigal@jboss.com">Ron Sigal</a>
30
* @version $Revision: 1633 $
32
* Copyright Nov 28, 2006
35
public interface AsynchInvokerCallbackHandler extends InvokerCallbackHandler
38
* For push callbacks, will send the callback to the server invoker on the
39
* client side, hand off processing to a separate thread, and return.<p>
41
* For pull callbacks, behaves the same as handleCallback(Callback callback).<p>
44
* @throws HandleCallbackException
46
public void handleCallbackOneway(Callback callback)
47
throws HandleCallbackException;
51
* For push callbacks:<p>
52
* if serverSide == false, will send the callback to the server invoker on
53
* the client side, hand off processing to a separate thread, and return.<p>
55
* if serverside == true, will hand off to a separate thread the sending
56
* of the callback and will then return.<p>
58
* For pull callbacks, behaves the same as handleCallback(Callback callback).<p>
62
* @throws HandleCallbackException
64
public void handleCallbackOneway(Callback callback, boolean serverSide)
65
throws HandleCallbackException;
69
* For push callbacks:<p>
70
* if asynch == false, behaves the same as handleCallback(Callback callback).<p>
72
* if asynch == true:<p>
73
* if serverSide == false, will send the callback to the server invoker on
74
* the client side, hand off processing to a separate thread, and return.<p>
76
* if serverside == true, will hand off to a separate thread the sending
77
* of the callback and will then return.<p>
79
* For pull callbacks, behaves the same as handleCallback(Callback callback).<p>
84
* @throws HandleCallbackException
86
public void handleCallback(Callback callback, boolean asynch, boolean serverSide)
87
throws HandleCallbackException;