com.sun.jini.jeri.internal.mux
Class Session.MuxInputStream
java.lang.Object
java.io.InputStream
com.sun.jini.jeri.internal.mux.Session.MuxInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- Session
private class Session.MuxInputStream
- extends InputStream
Output stream returned by OutboundRequests and InboundRequests for
a session of a multiplexed connection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Session.MuxInputStream
Session.MuxInputStream()
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
checkInboundRation
private void checkInboundRation()
- Sends ration increment, if read drained buffers below
a certain mark.
This method must NOT be invoked if the inbound ration in
infinite, and it must ONLY be invoked while synchronized on
this session's lock.
REMIND: The implementation of this action will be a
significant area for performance tuning.
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.