Package org.jboss.remoting3.util
Class BlockingInvocation.Response
- java.lang.Object
-
- org.jboss.remoting3.util.BlockingInvocation.Response
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- BlockingInvocation
public final class BlockingInvocation.Response extends Object implements Closeable
An invocation response for a blocking invocation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this response; closes the message stream (if any).MessageInputStream
getInputStream()
Get the message input stream.int
getParameter()
Get the passed-in parameter.
-
-
-
Method Detail
-
getInputStream
public MessageInputStream getInputStream() throws IOException
Get the message input stream.- Returns:
- the queued input stream
- Throws:
IOException
- if the channel was closed, or if another I/O error occurs
-
getParameter
public int getParameter()
Get the passed-in parameter.- Returns:
- the parameter (or 0 if the channel was closed)
-
close
public void close() throws IOException
Close this response; closes the message stream (if any).- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- if closing the message stream failed for some reason
-
-