Sea 0.4.0

gov.lbl.dsd.sea.nio.event
Class ChannelResponse.Registered

java.lang.Object
  extended bygov.lbl.dsd.sea.nio.event.ChannelResponse
      extended bygov.lbl.dsd.sea.nio.event.ChannelResponse.Registered
Enclosing class:
ChannelResponse

public static class ChannelResponse.Registered
extends ChannelResponse

Indicates response is to a prior ChannelRequest.Registerrequest; The interest ops supplied to the original request can be retrieved from the response via response.getInterestOps(). (This is necessary because key.interestOps() may block on a lock held by the NIO Selector.select() operation, potentially leading to ugly race deadlocks).


Nested Class Summary
 
Nested classes inherited from class gov.lbl.dsd.sea.nio.event.ChannelResponse
ChannelResponse.Accepted, ChannelResponse.Closed, ChannelResponse.Connected, ChannelResponse.Read, ChannelResponse.Registered, ChannelResponse.Write
 
Constructor Summary
ChannelResponse.Registered(NetAgent agent, SelectionKey key, IOException exception, int interestOps)
           
 
Method Summary
 int getInterestOps()
           
 String toString()
           
 
Methods inherited from class gov.lbl.dsd.sea.nio.event.ChannelResponse
getAgent, getException, getKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelResponse.Registered

public ChannelResponse.Registered(NetAgent agent,
                                  SelectionKey key,
                                  IOException exception,
                                  int interestOps)
Method Detail

getInterestOps

public int getInterestOps()

toString

public String toString()
Overrides:
toString in class ChannelResponse

Sea 0.4.0