org.mobicents.media.server.impl.resource.zap
Class SelectorKeyImpl

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.zap.SelectorKeyImpl
All Implemented Interfaces:
org.mobicents.protocols.stream.api.SelectorKey

public class SelectorKeyImpl
extends java.lang.Object
implements org.mobicents.protocols.stream.api.SelectorKey

Author:
kulikov

Constructor Summary
protected SelectorKeyImpl(Channel channel, Selector selector)
           
 
Method Summary
 void attach(java.lang.Object obj)
           
 java.lang.Object attachment()
           
 void cancel()
           
 org.mobicents.protocols.stream.api.Stream getStream()
           
 org.mobicents.protocols.stream.api.StreamSelector getStreamSelector()
           
 boolean isReadable()
           
 boolean isValid()
           
 boolean isWriteable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorKeyImpl

protected SelectorKeyImpl(Channel channel,
                          Selector selector)
Method Detail

isValid

public boolean isValid()
Specified by:
isValid in interface org.mobicents.protocols.stream.api.SelectorKey

isReadable

public boolean isReadable()
Specified by:
isReadable in interface org.mobicents.protocols.stream.api.SelectorKey

isWriteable

public boolean isWriteable()
Specified by:
isWriteable in interface org.mobicents.protocols.stream.api.SelectorKey

getStream

public org.mobicents.protocols.stream.api.Stream getStream()
Specified by:
getStream in interface org.mobicents.protocols.stream.api.SelectorKey

getStreamSelector

public org.mobicents.protocols.stream.api.StreamSelector getStreamSelector()
Specified by:
getStreamSelector in interface org.mobicents.protocols.stream.api.SelectorKey

cancel

public void cancel()
Specified by:
cancel in interface org.mobicents.protocols.stream.api.SelectorKey

attach

public void attach(java.lang.Object obj)
Specified by:
attach in interface org.mobicents.protocols.stream.api.SelectorKey

attachment

public java.lang.Object attachment()
Specified by:
attachment in interface org.mobicents.protocols.stream.api.SelectorKey


Copyright © 2010. All Rights Reserved.