Package org.apache.felix.gogo.runtime
Class Pipe.MultiChannel
java.lang.Object
org.apache.felix.gogo.runtime.Pipe.MultiChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,WritableByteChannel
- Enclosing class:
- Pipe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannel(Channel channel, boolean toclose) private voidcheckSuspend(Channel ch) voidclose()booleanisOpen()intread(ByteBuffer dst) intwrite(ByteBuffer src)
-
Field Details
-
channels
-
toClose
-
opened
-
index
int index
-
-
Constructor Details
-
MultiChannel
private MultiChannel()
-
-
Method Details
-
addChannel
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
checkSuspend
- Throws:
IOException
-