Module
Package org.xnio.channels
Interface ProtectedWrappedChannel<C extends java.nio.channels.Channel>
-
- Type Parameters:
C- the wrapped channel type
- All Known Implementing Classes:
FixedLengthStreamSinkChannel,FixedLengthStreamSourceChannel
public interface ProtectedWrappedChannel<C extends java.nio.channels.Channel>A protected, wrapped channel. A guard object is required to gain access to the underlying channel.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CgetChannel(java.lang.Object guard)Get the channel which is wrapped by this object, ornullif the guard is invalid.
-
-
-
Method Detail
-
getChannel
C getChannel(java.lang.Object guard)
Get the channel which is wrapped by this object, ornullif the guard is invalid.- Parameters:
guard- the guard object- Returns:
- the wrapped channel
-
-