class WebSocketDecoder extends FrameTranscoder with ByteToObjectStage[WebSocketFrame]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebSocketDecoder
- ByteToObjectStage
- MidStage
- Head
- Tail
- Stage
- FrameTranscoder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new WebSocketDecoder(isClient: Boolean, maxBufferSize: Int = 0)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bufferToFrame(in: ByteBuffer): WebSocketFrame
- Definition Classes
- FrameTranscoder
-
def
bufferToMessage(in: ByteBuffer): Option[WebSocketFrame]
Method that decodes ByteBuffers to objects.
Method that decodes ByteBuffers to objects. None reflects not enough data to decode a message Any unused data in the ByteBuffer will be recycled and available for the next read
- in
ByteBuffer of immediately available data
- returns
optional message if enough data was available
- Definition Classes
- WebSocketDecoder → ByteToObjectStage
- Annotations
- @throws( ... )
-
def
channelRead(size: Int, timeout: Duration): Future[ByteBuffer]
- Definition Classes
- Tail
-
final
def
channelWrite(data: Seq[ByteBuffer], timeout: Duration): Future[Unit]
- Definition Classes
- Tail
-
def
channelWrite(data: Seq[ByteBuffer]): Future[Unit]
- Definition Classes
- Tail
-
final
def
channelWrite(data: ByteBuffer, timeout: Duration): Future[Unit]
- Definition Classes
- Tail
-
def
channelWrite(data: ByteBuffer): Future[Unit]
- Definition Classes
- Tail
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
findInboundStage[C <: Stage](clazz: Class[C]): Option[C]
- Definition Classes
- Head
-
final
def
findInboundStage(name: String): Option[Stage]
- Definition Classes
- Head
-
final
def
findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]
- Definition Classes
- Tail
-
final
def
findOutboundStage(name: String): Option[Stage]
- Definition Classes
- Tail
-
def
frameToBuffer(in: WebSocketFrame): Array[ByteBuffer]
- Definition Classes
- FrameTranscoder
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
inboundCommand(cmd: InboundCommand): Unit
- Definition Classes
- Head → Stage
-
val
isClient: Boolean
- Definition Classes
- FrameTranscoder
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
val
logger: Logger
- Attributes
- protected
- Definition Classes
- Stage
-
val
maxBufferSize: Int
- Definition Classes
- WebSocketDecoder → ByteToObjectStage
-
def
messageToBuffer(in: WebSocketFrame): Seq[ByteBuffer]
Encode objects to buffers
Encode objects to buffers
- in
object to decode
- returns
sequence of ByteBuffers to pass to the head
- Definition Classes
- WebSocketDecoder → ByteToObjectStage
- Annotations
- @throws( ... )
-
val
name: String
- Definition Classes
- WebSocketDecoder → Stage
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
outboundCommand(cmd: OutboundCommand): Unit
- Definition Classes
- MidStage → Head
-
def
readRequest(size: Int): Future[WebSocketFrame]
- Definition Classes
- ByteToObjectStage → Head
-
final
def
removeStage(implicit ev: =:=[MidStage[ByteBuffer, WebSocketFrame], MidStage[ByteBuffer, ByteBuffer]]): Unit
- Definition Classes
- MidStage
-
final
def
replaceInline(stage: MidStage[ByteBuffer, WebSocketFrame]): WebSocketDecoder.this.type
- Definition Classes
- MidStage
-
final
def
replaceInline(leafBuilder: LeafBuilder[ByteBuffer], startup: Boolean): WebSocketDecoder.this.type
- Definition Classes
- Tail
-
final
def
replaceNext(stage: LeafBuilder[WebSocketFrame]): Tail[WebSocketFrame]
- Definition Classes
- MidStage
-
final
def
sendInboundCommand(cmd: InboundCommand): Unit
- Definition Classes
- Head
-
final
def
sendOutboundCommand(cmd: OutboundCommand): Unit
- Definition Classes
- Tail
-
final
def
spliceAfter(stage: MidStage[WebSocketFrame, WebSocketFrame]): Unit
- Definition Classes
- Head
-
final
def
spliceBefore(stage: MidStage[ByteBuffer, ByteBuffer]): Unit
- Definition Classes
- Tail
-
def
stageShutdown(): Unit
- Attributes
- protected
- Definition Classes
- Stage
-
def
stageStartup(): Unit
- Attributes
- protected
- Definition Classes
- Stage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
writeRequest(data: WebSocketFrame): Future[Unit]
- Definition Classes
- ByteToObjectStage → Head
-
def
writeRequest(data: Seq[WebSocketFrame]): Future[Unit]
- Definition Classes
- ByteToObjectStage → Head