Package org.eclipse.jetty.io
package org.eclipse.jetty.io
Jetty IO : Core classes for Jetty IO subsystem
-
ClassDescriptionA convenience base implementation of
Connection
.A ByteBuffer pool where ByteBuffers are held in queues that are held in array elements.ByteArrayEndPoint.Accumulates data into a list of ByteBuffers which can then be combined into a single buffer or written to an OutputStream.Simple wrapper of a ByteBuffer as an OutputStream.This class implements an output stream in which the data is written into a list of ByteBuffer, the buffer list automatically grows as data is written to it, the buffers are taken from the suppliedByteBufferPool
or freshly allocated if one is not supplied.AByteBuffer
pool.Channel End Point.Factory for client-sideConnection
instances.Wraps another ClientConnectionFactory.AConnection
is associated to anEndPoint
so that I/O events happening on theEndPoint
can be processed by theConnection
.A Listener for connection events.Connection
implementations implement this interface when they can upgrade from the protocol they speak (for example HTTP/1.1) to a different protocol (e.g.Connection
implementations implement this interface when they can be upgraded to the protocol they speak (e.g.AConnection.Listener
that tracks connection statistics.An abstract implementation of a timeout.A timeout time with a link to a Wakeup chain.EndPoint is the abstraction for an I/O channel that transports bytes.A Jetty specialization of EOFException.A Utility class to help implementEndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.An Abstract implementation of an Idle Timeout.ManagedSelector
wraps aSelector
simplifying non-blocking operations on channels.AManagedSelector.Selectable
is anEndPoint
that wish to be notified of non-blocking events by theManagedSelector
.A selector update to be done when the selector has been woken.A ByteBuffer pool where ByteBuffers are held in queues that are held in a Map.A listener for raw network traffic within Jetty.Deprecated.Deprecated.useNetworkTrafficSocketChannelEndPoint
insteadA specialized version ofSocketChannelEndPoint
that supportsNetworkTrafficListener
s.A Quiet Exception.A Retainable ByteBuffer.Subclass ofRuntimeException
used to signal that there was anIOException
thrown by underlyingWriter
Deprecated.useSocketChannelEndPoint
insteadSelectorManager
manages a number ofManagedSelector
s that simplify the non-blocking primitives provided by the JVM via thejava.nio
package.A listener for accept events.A Utility class to help implementEndPoint.write(Callback, ByteBuffer...)
by callingEndPoint.flush(ByteBuffer...)
until all content is written.In CompletingState WriteFlusher is flushing buffers that have not been fully written in write().In FailedState no more operations are allowed.In IdleState WriteFlusher is idle and accepts new writesA listener ofWriteFlusher
events.State represents a State of WriteFlusher.In WritingState WriteFlusher is currently writing.Wrap a Writer as an OutputStream.
NetworkTrafficListener
instead