Package com.palantir.dialogue.hc4
Class ApacheHttpClientChannels.CloseableClient
- java.lang.Object
-
- com.palantir.dialogue.hc4.ApacheHttpClientChannels.CloseableClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- ApacheHttpClientChannels
public static final class ApacheHttpClientChannels.CloseableClient extends java.lang.Object implements java.io.CloseableIntentionally opaque wrapper type - we don't want people using the inner Apache client directly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()Object.finalize()gets called when this object is GC'd.java.lang.StringtoString()
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.lang.ThrowableObject.finalize()gets called when this object is GC'd. Overriding finalize is discouraged because if objects are created faster than finalizer threads can process the GC'd objects, then the system OOMs. We think it's safe in this scenario because we expect these Apache clients to be very infrequently constructed. Tritium 0.16.9 also has instrumentation to measure the size of the finalizer queue (https://github.com/palantir/tritium/pull/712).- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-