|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.mwe.internal.core.debug.communication.PackageReceiver
public class PackageReceiver
This Runnable listens for incoming packages asynchroniously and keeps them, until they are required by customers.
| Method Summary | |
|---|---|
AbstractPackage |
getPackage(java.lang.Class<? extends AbstractPackage> type,
int refId,
long timeToWait)
Get a packet of the requested type with a specific id, wait the specified time until it arrives, if time is negative, wait until socket will be closed |
AbstractPackage |
getPackage(java.lang.Class<? extends AbstractPackage> type,
long timeToWait)
Get a packet of the requested type, wait the specified time until it arrives, if time is negative, wait until socket will be closed |
static PackageReceiver |
newPackageReceiver(Connection connection)
create a new instance and starts the runnable in a new thread |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PackageReceiver newPackageReceiver(Connection connection)
connection - the Connection that controls this data receiver.
public AbstractPackage getPackage(java.lang.Class<? extends AbstractPackage> type,
long timeToWait)
throws java.io.InterruptedIOException
type - the packet typetimeToWait - until timeout
java.io.InterruptedIOException
public AbstractPackage getPackage(java.lang.Class<? extends AbstractPackage> type,
int refId,
long timeToWait)
throws java.io.InterruptedIOException
type - the packet typerefId - the id the receiving packet must havetimeToWait - until timeout
java.io.InterruptedIOException
java.io.InterruptedIOExceptionpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||