net.sf.asyncobjects.net.threading
Class TSocket.TOutputStreamAdapter

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<AByteOutput>
      extended by net.sf.asyncobjects.io.adapters.OutputStreamAdapter
          extended by net.sf.asyncobjects.net.threading.TSocket.TOutputStreamAdapter
All Implemented Interfaces:
ACloseable, AsyncObject, ExplicitSharing, AByteOutput, AOutput<BinaryData>
Enclosing class:
TSocket

public class TSocket.TOutputStreamAdapter
extends OutputStreamAdapter

Adapter for socket output stream. Note it uses shutdownOutput instead of stream closing.


Method Summary
 Promise<Void> close()
          close stream
 
Methods inherited from class net.sf.asyncobjects.io.adapters.OutputStreamAdapter
flush, write
 
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer
dereference, export, isImmediate, myVat, promise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

close

public Promise<Void> close()
Description copied from class: OutputStreamAdapter
close stream

Specified by:
close in interface ACloseable
Overrides:
close in class OutputStreamAdapter
Returns:
a promise that resolves when object is closed.
See Also:
OutputStreamAdapter.close()


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.