|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.lang.protocol.StoppableUtil
public final class StoppableUtil
Various Stoppable-related utility methods.
| Method Summary | |
|---|---|
static Stoppable |
toStoppable(java.io.Closeable closeable)
Creates a Stoppable that closes the given Closeable when Stoppable.stop() is called. |
static Stoppable |
toStoppable(java.net.Socket socket)
Amazingly, a Socket is not a Closeable, hence we need this special version of "toStoppable()". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Stoppable toStoppable(java.io.Closeable closeable)
Stoppable that closes the given Closeable when Stoppable.stop() is called.
public static Stoppable toStoppable(java.net.Socket socket)
Socket is not a Closeable, hence we need this special version of "toStoppable()".
toStoppable(Closeable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||