|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.spy.memcached.compat.CloseUtil
public final class CloseUtil
CloseUtil exists to provide a safe means to close anything closeable. This prevents exceptions from being thrown from within finally blocks while still providing logging of exceptions that occur during close. Exceptions during the close will be logged using the spy logging infrastructure, but will not be propagated up the stack.
Constructor Summary | |
---|---|
CloseUtil()
|
Method Summary | |
---|---|
static void |
close(java.io.Closeable closeable)
Close a closeable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseUtil()
Method Detail |
---|
public static void close(java.io.Closeable closeable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |