de.grogra.imp.net
Class SimpleResponseHandler
java.lang.Object
   de.grogra.imp.net.SimpleResponseHandler
de.grogra.imp.net.SimpleResponseHandler
- All Implemented Interfaces: 
- ResponseHandler
- public class SimpleResponseHandler 
- extends java.lang.Object- implements ResponseHandler
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
INT
public static final int INT
- See Also:
- Constant Field Values
LONG
public static final int LONG
- See Also:
- Constant Field Values
STRING
public static final int STRING
- See Also:
- Constant Field Values
USER
public static final int USER
- See Also:
- Constant Field Values
SimpleResponseHandler
public SimpleResponseHandler(int type)
consume
public void consume(int value)
             throws java.lang.InterruptedException,
                    java.io.IOException
- 
 
- 
- Throws:
- java.lang.InterruptedException
- java.io.IOException
 
getInt
public int getInt()
           throws java.lang.InterruptedException
- 
 
- 
- Throws:
- java.lang.InterruptedException
 
getLong
public long getLong()
             throws java.lang.InterruptedException
- 
 
- 
- Throws:
- java.lang.InterruptedException
 
getString
public java.lang.String getString()
                           throws java.lang.InterruptedException
- 
 
- 
- Throws:
- java.lang.InterruptedException
 
handleResponse
public void handleResponse(Connection cx,
                           long requestId,
                           long responseId)
                    throws java.io.IOException
- 
- Specified by:
- handleResponsein interface- ResponseHandler
 
- 
- Throws:
- java.io.IOException
 
handleUserResponse
protected void handleUserResponse(Connection cx,
                                  long requestId,
                                  long responseId)
                           throws java.io.IOException
- 
 
- 
- Throws:
- java.io.IOException
 
waitForResult
public void waitForResult()
                   throws java.lang.InterruptedException
- 
 
- 
- Throws:
- java.lang.InterruptedException
 
waitForResultWrapInterruption
public void waitForResultWrapInterruption()
                                   throws java.io.IOException
- 
 
- 
- Throws:
- java.io.IOException