Class ReadState
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.io.ReadState
-
class ReadState extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ReadState.Action
private static class
ReadState.State
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
buffer
private static org.eclipse.jetty.util.log.Logger
LOG
private ReadState.State
state
-
Constructor Summary
Constructors Constructor Description ReadState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
discard()
(package private) void
eof()
(package private) ReadState.Action
getAction(java.nio.ByteBuffer buffer)
(package private) java.nio.ByteBuffer
getBuffer()
(package private) boolean
isReading()
(package private) boolean
isSuspended()
(package private) java.nio.ByteBuffer
resume()
(package private) void
suspending()
Requests that reads from the connection be suspended.java.lang.String
toString()
private java.lang.String
toString(ReadState.State state)
-
-
-
Field Detail
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG
-
state
private ReadState.State state
-
buffer
private java.nio.ByteBuffer buffer
-
-
Method Detail
-
getBuffer
java.nio.ByteBuffer getBuffer()
-
isReading
boolean isReading()
-
isSuspended
boolean isSuspended()
-
getAction
ReadState.Action getAction(java.nio.ByteBuffer buffer)
-
suspending
void suspending()
Requests that reads from the connection be suspended.
-
resume
java.nio.ByteBuffer resume()
- Returns:
- a ByteBuffer to finish processing, or null if we should register fillInterested
If return value is
BufferUtil.EMPTY_BUFFER
no action should be taken.
-
eof
void eof()
-
discard
void discard()
-
toString
private java.lang.String toString(ReadState.State state)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-