jtge.engine.io
Class AsynchronousConnector

java.lang.Object
  extended byjava.lang.Thread
      extended byjtge.engine.io.AsynchronousConnector
All Implemented Interfaces:
IConnector, java.lang.Runnable

public class AsynchronousConnector
extends java.lang.Thread
implements IConnector

Wraps a connector to provide an asynchronous connection.

This acceptor provides a non-blocking open.

Version:
$Revision: 1.4 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AsynchronousConnector(IConnector connector)
          Create an asynchronous connector.
 
Method Summary
 void open()
          Open the connector.

Whether this method is blocking or not depends on the implementation.

 void run()
          
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsynchronousConnector

public AsynchronousConnector(IConnector connector)
Create an asynchronous connector.

Parameters:
connector - the connector to wrap
Method Detail

run

public final void run()

Specified by:
run in interface java.lang.Runnable

open

public final void open()
Open the connector.

Whether this method is blocking or not depends on the implementation.

Specified by:
open in interface IConnector


Copyright © 2003-2005 . All Rights Reserved.