au.com.terabit.jproactor
Class OpAccept

java.lang.Object
  extended by au.com.terabit.jproactor.IOOperation
      extended by au.com.terabit.jproactor.OpAccept

public class OpAccept
extends IOOperation

Th OpAccept class implements accept IO operation.

Copyright © 2003 Terabit Pty Ltd. All rights reserved.

Version:
$Revision$ $Date$
Author:
Yevgeny Libman

Field Summary
protected  AsynchChannel m_acceptedChannel
          Newly accepted connection instance
 
Fields inherited from class au.com.terabit.jproactor.IOOperation
m_asynchChannel, m_errorCause
 
Method Summary
protected  boolean execute()
           
 AsynchChannel getAcceptedChannel()
          Returns the result of the accept operation.
 void onComplete()
          Dispatches accepted channel to the associated protocol so it can start execution.
 
Methods inherited from class au.com.terabit.jproactor.IOOperation
getChannel, getError, getState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_acceptedChannel

protected AsynchChannel m_acceptedChannel
Newly accepted connection instance

Method Detail

execute

protected boolean execute()
Specified by:
execute in class IOOperation

onComplete

public void onComplete()
Dispatches accepted channel to the associated protocol so it can start execution.

See Also:
IOOperation.onComplete(), AsynchChannelHandler#acceptCompleted(OpAccept),

getAcceptedChannel

public AsynchChannel getAcceptedChannel()
Returns the result of the accept operation.

Returns:
a newly accepted socket channel