Using Closeable instead of AutoCloseable.
This commit is contained in:
parent
679eeb7a7c
commit
07420547f9
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.client;
|
package org.eclipse.jetty.client;
|
||||||
|
|
||||||
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.channels.AsynchronousCloseException;
|
import java.nio.channels.AsynchronousCloseException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -45,7 +46,7 @@ import org.eclipse.jetty.util.component.Dumpable;
|
||||||
import org.eclipse.jetty.util.log.Log;
|
import org.eclipse.jetty.util.log.Log;
|
||||||
import org.eclipse.jetty.util.log.Logger;
|
import org.eclipse.jetty.util.log.Logger;
|
||||||
|
|
||||||
public class HttpDestination implements Destination, AutoCloseable, Dumpable
|
public class HttpDestination implements Destination, Closeable, Dumpable
|
||||||
{
|
{
|
||||||
private static final Logger LOG = Log.getLogger(HttpDestination.class);
|
private static final Logger LOG = Log.getLogger(HttpDestination.class);
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.client.api;
|
package org.eclipse.jetty.client.api;
|
||||||
|
|
||||||
|
import java.io.Closeable;
|
||||||
|
|
||||||
import org.eclipse.jetty.util.Promise;
|
import org.eclipse.jetty.util.Promise;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +30,7 @@ import org.eclipse.jetty.util.Promise;
|
||||||
* may be created by applications that want to do their own connection management via
|
* may be created by applications that want to do their own connection management via
|
||||||
* {@link Destination#newConnection(Promise)} and {@link Connection#close()}.
|
* {@link Destination#newConnection(Promise)} and {@link Connection#close()}.
|
||||||
*/
|
*/
|
||||||
public interface Connection extends AutoCloseable
|
public interface Connection extends Closeable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Sends a request with an associated response listener.
|
* Sends a request with an associated response listener.
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.client.util;
|
package org.eclipse.jetty.client.util;
|
||||||
|
|
||||||
|
import java.io.Closeable;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
|
@ -77,7 +78,7 @@ import org.eclipse.jetty.client.api.Response;
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public class DeferredContentProvider implements AsyncContentProvider, AutoCloseable
|
public class DeferredContentProvider implements AsyncContentProvider, Closeable
|
||||||
{
|
{
|
||||||
private static final ByteBuffer CLOSE = ByteBuffer.allocate(0);
|
private static final ByteBuffer CLOSE = ByteBuffer.allocate(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue