FileDocCategorySizeDatePackage
ASSelectionKey.javaAPI DocGlassfish v2 API3569Fri May 04 22:35:52 BST 2007com.sun.enterprise.server.ss.provider

ASSelectionKey

public class ASSelectionKey extends SelectionKey
SelectionKey implementation for the socket wrappers of Quick startup implementation. Basic reason for introducing this class is to make sure that any service that does a SelectionKey.channel().accept() to accept the connections are blocked until the server startup completes.
see
ASSelector

Fields Summary
private SelectableChannel
channel
private SelectionKey
key
private Selector
sel
Constructors Summary
ASSelectionKey(SelectableChannel channel, SelectionKey key, Selector sel)


     
                    
                     
        this.channel = channel;
        this.key = key;
        this.sel = sel;
    
Methods Summary
public voidcancel()

        key.cancel();
    
public java.nio.channels.SelectableChannelchannel()

        return channel;
    
public booleanequals(java.lang.Object obj)

        return key.equals(obj);
    
public inthashCode()

        return key.hashCode();
    
public intinterestOps()

        return key.interestOps();
    
public java.nio.channels.SelectionKeyinterestOps(int i)

        return key.interestOps(i);
    
public booleanisValid()

        return key.isValid();
    
public intreadyOps()

        return key.readyOps();
    
public java.nio.channels.Selectorselector()

        return sel;