public final class Tunnel extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
void |
await(long time,
TimeUnit unit) |
static Tunnel |
connect(Socket left,
Socket right) |
static Tunnel |
connect(Socket left,
Socket right,
TunnelListener listener) |
void |
interrupt() |
boolean |
isBroken() |
boolean |
isClosed() |
boolean |
isInterrupted() |
boolean |
isOpened() |
String |
toString() |
public boolean isOpened()
public boolean isClosed()
public boolean isBroken()
public boolean isInterrupted()
public void interrupt()
public void await(long time,
TimeUnit unit)
throws InterruptedException,
BrokenTunnelException,
TimeoutException
public void await()
throws InterruptedException,
BrokenTunnelException
public static Tunnel connect(Socket left, Socket right) throws IOException
IOExceptionpublic static Tunnel connect(Socket left, Socket right, TunnelListener listener) throws IOException
IOExceptionCopyright © 2011 Ovea. All Rights Reserved.