Package org.eclipse.jetty.client
Class HttpDestination
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.HttpDestination
- All Implemented Interfaces:
Closeable,AutoCloseable,Destination,Callback,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle,Invocable,Sweeper.Sweepable
- Direct Known Subclasses:
MultiplexHttpDestination,PoolingHttpDestination
@ManagedObject
@Deprecated(since="2021-05-27")
public abstract class HttpDestination
extends ContainerLifeCycle
implements Destination, Closeable, Callback, Dumpable, Sweeper.Sweepable
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationTypeNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Aborts all theHttpExchanges queued in this destination.asString()Deprecated.voidclose()Deprecated.voidclose(Connection connection) Deprecated.voiddump(Appendable out, String indent) Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.voidDeprecated.Callback invoked when the operation fails.Deprecated.Deprecated.Deprecated.getHost()Deprecated.Deprecated.Deprecated.Deprecated.longgetIdle()Deprecated.Deprecated.intgetPort()Deprecated.getProxy()Deprecated.intDeprecated.Deprecated.Deprecated.Deprecated.booleanisSecure()Deprecated.booleanisStale()Deprecated.voidnewConnection(Promise<Connection> promise) Deprecated.Creates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise.voidrelease(Connection connection) Deprecated.booleanremove(Connection connection) Deprecated.booleanremove(HttpExchange exchange) Deprecated.voidsend()Deprecated.voidsend(Request request, Response.CompleteListener listener) Deprecated.voidsend(HttpExchange exchange) Deprecated.booleanstale()Deprecated.voidDeprecated.Callback invoked when the operation completes.booleansweep()Deprecated.toString()Deprecated.Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Constructor Details
-
HttpDestination
Deprecated.
-
-
Method Details
-
stale
public boolean stale()Deprecated. -
sweep
public boolean sweep()Deprecated.- Specified by:
sweepin interfaceSweeper.Sweepable- Returns:
- whether this resource should be swept
-
isSecure
public boolean isSecure()Deprecated. -
getHttpClient
Deprecated. -
getOrigin
Deprecated. -
getHttpExchanges
Deprecated. -
getRequestNotifier
Deprecated. -
getResponseNotifier
Deprecated. -
getProxy
Deprecated. -
getClientConnectionFactory
Deprecated. -
getScheme
Deprecated.- Specified by:
getSchemein interfaceDestination- Returns:
- the scheme of this destination, such as "http" or "https"
-
getHost
Deprecated.- Specified by:
getHostin interfaceDestination- Returns:
- the host of this destination, such as "127.0.0.1" or "google.com"
-
getPort
Deprecated.- Specified by:
getPortin interfaceDestination- Returns:
- the port of this destination such as 80 or 443
-
getQueuedRequestCount
@ManagedAttribute(value="The number of queued requests", readonly=true) public int getQueuedRequestCount()Deprecated. -
getConnectAddress
Deprecated. -
getHostField
Deprecated. -
getConnectionPool
@ManagedAttribute(value="The connection pool", readonly=true) public ConnectionPool getConnectionPool()Deprecated. -
succeeded
public void succeeded()Deprecated.Description copied from interface:CallbackCallback invoked when the operation completes.
-
failed
Deprecated.Description copied from interface:CallbackCallback invoked when the operation fails.
-
send
Deprecated. -
send
Deprecated. -
send
public void send()Deprecated. -
newConnection
Deprecated.Description copied from interface:DestinationCreates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise.Use
FuturePromiseto wait for the connection:Destination destination = ...; FuturePromise<Connection> futureConnection = new FuturePromise<>(); destination.newConnection(futureConnection); Connection connection = futureConnection.get(5, TimeUnit.SECONDS);
- Specified by:
newConnectionin interfaceDestination- Parameters:
promise- the promise of a new, unpooled,Connection
-
remove
Deprecated. -
close
public void close()Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
release
Deprecated. -
remove
Deprecated. -
close
Deprecated.useremove(Connection)instead- Parameters:
connection- the connection to remove
-
abort
Deprecated.Aborts all theHttpExchanges queued in this destination.- Parameters:
cause- the abort cause
-
dump
Deprecated.Description copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dumpin interfaceDumpable- Overrides:
dumpin classContainerLifeCycle- Parameters:
out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
IOException- if unable to write to Appendable
-
asString
Deprecated. -
getIdle
Deprecated. -
isStale
Deprecated. -
toString
Deprecated.- Overrides:
toStringin classAbstractLifeCycle
-
remove(Connection)instead