JBoss Remoting 3.0.0.Beta2

org.jboss.remoting.spi
Interface ReplyHandler


public interface ReplyHandler

A handler for replies from a request. The handler should respect the first invocation made on it, and ignore any subsequent invocations.


Method Summary
 void handleCancellation()
          Handle a cancellation acknowledgement.
 void handleException(IOException exception)
          Handle an exception.
 void handleReply(Object reply)
          Handle a successful reply.
 

Method Detail

handleReply

void handleReply(Object reply)
                 throws IOException
Handle a successful reply. If the reply could not be forwarded, an exception is thrown.

Parameters:
reply - the reply
Throws:
IOException

handleException

void handleException(IOException exception)
                     throws IOException
Handle an exception. If the exception could not be forwarded, a (different) IOException is thrown.

Parameters:
exception - an exception which describes the problem
Throws:
IOException

handleCancellation

void handleCancellation()
                        throws IOException
Handle a cancellation acknowledgement. If the cancellation acknowledgement could not be forwarded, an exception is thrown.

Throws:
IOException

JBoss Remoting 3.0.0.Beta2

Copyright © 2008 JBoss, a division of Red Hat, Inc.