Top Description Methods
org.xnio.channels

public Interface ProtectedWrappedChannel<C extends Channel>

Known Direct Implementers
org.xnio.channels.FixedLengthStreamSinkChannel, org.xnio.channels.FixedLengthStreamSourceChannel
Type Parameters
<C>
the wrapped channel type
Imports
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

Modifier and TypeMethod and Description
public C

Returns:

the wrapped channel
getChannel
(Object
the guard object
guard
)

Get the channel which is wrapped by this object, or null if the guard is invalid.

Method Detail

getChannelback to summary
public C getChannel(Object guard)

Get the channel which is wrapped by this object, or null if the guard is invalid.

Parameters
guard:Object

the guard object

Returns:C

the wrapped channel