com.jproxy.proxy.callback
Interface CallbackServer

All Known Implementing Classes:
HttpCallbackServer

public interface CallbackServer

The remote interface for remote object located on Tunneling server. The remote interface of remote object used to support callback This object is shared between several callers and one consumer. The callers an consumer are remote objects also. For each client that uses callbacks one instance of the class exists on the server. The remote object provides temporary storage for requests to be done on the client. All requests to perform callback on the client are stacked in the object. The client contacts the object in order to get the requests and then performs them in original order.


Method Summary
 void clear()
          Removes all objects from the stack.
 java.lang.Object getResult(java.lang.Object obj)
          The method may be used by invoker to get result of method call on callback object.
 int getSize()
          Returns a number of elements in the stack.
 java.lang.Object invoke(java.lang.Object o)
           
 java.lang.Object peek()
          Peeks previosly pushed request object from stack without changing status of the stack.
 java.lang.Object pop()
          Pops previosly pushed request object from stack.
 java.util.Vector popAll()
          Paps all existing request object from the stack.
 java.util.Vector popAllWithResult(java.util.Vector results)
           
 void push(java.lang.Object obj)
          Pushes the request object to stack.
 void setResult(java.lang.Object obj)
          The method may be used by client that hosts callback object to return the result of callback to invoker.
 

Method Detail

getSize

public int getSize()
Returns a number of elements in the stack.


push

public void push(java.lang.Object obj)
Pushes the request object to stack.

Parameters:
obj - object that must be pushed to stack

invoke

public java.lang.Object invoke(java.lang.Object o)

peek

public java.lang.Object peek()
Peeks previosly pushed request object from stack without changing status of the stack.


pop

public java.lang.Object pop()
Pops previosly pushed request object from stack.


popAll

public java.util.Vector popAll()
Paps all existing request object from the stack.


clear

public void clear()
Removes all objects from the stack.


setResult

public void setResult(java.lang.Object obj)
The method may be used by client that hosts callback object to return the result of callback to invoker.

Parameters:
obj - the result from method call on callback object.

getResult

public java.lang.Object getResult(java.lang.Object obj)
The method may be used by invoker to get result of method call on callback object.

Parameters:
obj - object that describes session

popAllWithResult

public java.util.Vector popAllWithResult(java.util.Vector results)


Copyright © JProxy LLC. All Rights Reserved.