com.parctechnologies.eclipse
Class AsyncEclipseQueue

java.lang.Object
  extended by com.parctechnologies.eclipse.AsyncEclipseQueue

public class AsyncEclipseQueue
extends java.lang.Object

An asynchronous, bidirectional queue for communicating between ECLiPSe and Java. The following differences exist between a synchronous FromEclipseQueue/ToEclipseQueue and an asynchronous AsyncEclipseQueue:

There is no public constructor; to access an AsyncEclipseQueue, use the createAsyncEclipseQueue() of an object implementing the EclipseConnection interface. But note that asynchronous queues are only implemented by the RemoteEclipse and OutOfProcessEclipse implementations, not the EmbeddedEclipse variant.


Method Summary
 void close()
          Closes the queue (both eclipse and Java sides)
 java.io.InputStream getInputStream()
          Gets the InputStream associated with the (bidirectional) AsyncEclipseQueue.
 java.io.OutputStream getOutputStream()
          Gets the OutputStream associated with the (bidirectional) AsyncEclipseQueue.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws java.io.IOException
Closes the queue (both eclipse and Java sides)

Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets the InputStream associated with the (bidirectional) AsyncEclipseQueue. Throws an exception if the Queue is closed.

Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Gets the OutputStream associated with the (bidirectional) AsyncEclipseQueue. Throws an exception if the Queue is closed.

Throws:
java.io.IOException