Class AbstractConnection
- java.lang.Object
 - 
- org.eclipse.jetty.io.AbstractConnection
 
 
- 
- All Implemented Interfaces:
 java.io.Closeable,java.lang.AutoCloseable,Connection
- Direct Known Subclasses:
 AbstractWebSocketConnection,HttpConnection,HttpConnectionOverHTTP,NegotiatingClientConnection,NegotiatingServerConnection,SslConnection
@Deprecated(since="2021-05-27") public abstract class AbstractConnection extends java.lang.Object implements Connection
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A convenience base implementation of
Connection.This class uses the capabilities of the
EndPointAPI to provide a more traditional style of async reading. A call tofillInterested()will schedule a callback toonFillable()oronFillInterestedFailed(Throwable)as appropriate. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(Connection.Listener listener)Deprecated.Adds a listener of connection events.voidclose()Deprecated.Performs a logical close of this connection.voidfillInterested()Deprecated.Utility method to be called to register read interest.longgetBytesIn()Deprecated.longgetBytesOut()Deprecated.longgetCreatedTimeStamp()Deprecated.EndPointgetEndPoint()Deprecated.intgetInputBufferSize()Deprecated.longgetMessagesIn()Deprecated.longgetMessagesOut()Deprecated.booleanisFillInterested()Deprecated.voidonClose()Deprecated.Callback method invoked when this connection is closed.abstract voidonFillable()Deprecated.Callback method invoked when the endpoint is ready to be read.booleanonIdleExpired()Deprecated.Callback method invoked upon an idle timeout event.voidonOpen()Deprecated.Callback method invoked when this connection is opened.voidremoveListener(Connection.Listener listener)Deprecated.Removes a listener of connection events.voidsetInputBufferSize(int inputBufferSize)Deprecated.java.lang.StringtoConnectionString()Deprecated.java.lang.StringtoString()Deprecated.voidtryFillInterested()Deprecated.voidtryFillInterested(Callback callback)Deprecated. 
 - 
 
- 
- 
Method Detail
- 
addListener
public void addListener(Connection.Listener listener)
Deprecated.Description copied from interface:ConnectionAdds a listener of connection events.
- Specified by:
 addListenerin interfaceConnection- Parameters:
 listener- the listener to add
 
- 
removeListener
public void removeListener(Connection.Listener listener)
Deprecated.Description copied from interface:ConnectionRemoves a listener of connection events.
- Specified by:
 removeListenerin interfaceConnection- Parameters:
 listener- the listener to remove
 
- 
getInputBufferSize
public int getInputBufferSize()
Deprecated. 
- 
setInputBufferSize
public void setInputBufferSize(int inputBufferSize)
Deprecated. 
- 
fillInterested
public void fillInterested()
Deprecated.Utility method to be called to register read interest.
After a call to this method,
onFillable()oronFillInterestedFailed(Throwable)will be called back as appropriate.- See Also:
 onFillable()
 
- 
tryFillInterested
public void tryFillInterested()
Deprecated. 
- 
tryFillInterested
public void tryFillInterested(Callback callback)
Deprecated. 
- 
isFillInterested
public boolean isFillInterested()
Deprecated. 
- 
onFillable
public abstract void onFillable()
Deprecated.Callback method invoked when the endpoint is ready to be read.
- See Also:
 fillInterested()
 
- 
onOpen
public void onOpen()
Deprecated.Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
 onOpenin interfaceConnection
 
- 
onClose
public void onClose()
Deprecated.Description copied from interface:ConnectionCallback method invoked when this connection is closed.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
 onClosein interfaceConnection
 
- 
getEndPoint
public EndPoint getEndPoint()
Deprecated.- Specified by:
 getEndPointin interfaceConnection- Returns:
 - the 
EndPointassociated with this Connection. 
 
- 
close
public void close()
Deprecated.Description copied from interface:ConnectionPerforms a logical close of this connection.
For simple connections, this may just mean to delegate the close to the associated
EndPointbut, for example, SSL connections should write the SSL close message before closing the associatedEndPoint.- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable- Specified by:
 closein interfaceConnection
 
- 
onIdleExpired
public boolean onIdleExpired()
Deprecated.Description copied from interface:ConnectionCallback method invoked upon an idle timeout event.
Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed.
When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.
- Specified by:
 onIdleExpiredin interfaceConnection- Returns:
 - true to let the EndPoint handle the idle timeout, false to tell the EndPoint to halt the handling of the idle timeout.
 
 
- 
getMessagesIn
public long getMessagesIn()
Deprecated.- Specified by:
 getMessagesInin interfaceConnection
 
- 
getMessagesOut
public long getMessagesOut()
Deprecated.- Specified by:
 getMessagesOutin interfaceConnection
 
- 
getBytesIn
public long getBytesIn()
Deprecated.- Specified by:
 getBytesInin interfaceConnection
 
- 
getBytesOut
public long getBytesOut()
Deprecated.- Specified by:
 getBytesOutin interfaceConnection
 
- 
getCreatedTimeStamp
public long getCreatedTimeStamp()
Deprecated.- Specified by:
 getCreatedTimeStampin interfaceConnection
 
- 
toString
public final java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
- 
toConnectionString
public java.lang.String toConnectionString()
Deprecated. 
 - 
 
 -