ozone core API

org.ozoneDB.DxLib.net
Class DxAsyncClient

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.DxLib.net.DxClient
          extended byorg.ozoneDB.DxLib.net.DxAsyncClient
All Implemented Interfaces:
java.lang.Cloneable, DxCompatible, java.lang.Runnable, java.io.Serializable

public abstract class DxAsyncClient
extends DxClient
implements java.lang.Runnable

See Also:
Serialized Form

Field Summary
(package private)  java.lang.Thread _thread
           
(package private)  boolean cont
           
 
Fields inherited from class org.ozoneDB.DxLib.net.DxClient
buffSize, in, out, sock
 
Fields inherited from class org.ozoneDB.DxLib.DxObject
 
Constructor Summary
DxAsyncClient(java.net.Socket s, boolean externalThread)
           
DxAsyncClient(java.lang.String host, int port, boolean externalThread)
           
 
Method Summary
 void close()
           
abstract  void handleEvent(java.lang.Object event)
           
private  void init(boolean externalThread)
           
 void run()
           
 java.lang.Thread thread()
           
 
Methods inherited from class org.ozoneDB.DxLib.net.DxClient
init, inputStream, objectAvailable, onConnect, onDeconnect, outputStream, receive, send
 
Methods inherited from class org.ozoneDB.DxLib.DxObject
clone, isLess
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
equals
 

Field Detail

cont

boolean cont

_thread

java.lang.Thread _thread
Constructor Detail

DxAsyncClient

public DxAsyncClient(java.lang.String host,
                     int port,
                     boolean externalThread)
              throws java.io.IOException

DxAsyncClient

public DxAsyncClient(java.net.Socket s,
                     boolean externalThread)
              throws java.io.IOException
Method Detail

init

private void init(boolean externalThread)

thread

public java.lang.Thread thread()

run

public void run()
Specified by:
run in interface java.lang.Runnable

close

public void close()
           throws java.io.IOException
Overrides:
close in class DxClient
Throws:
java.io.IOException

handleEvent

public abstract void handleEvent(java.lang.Object event)

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.