java docs for Artery, #21209
* and a few other things * fixed some remaining akka.tcp
This commit is contained in:
parent
4a4f9c76f9
commit
7af814d3df
13 changed files with 848 additions and 39 deletions
|
|
@ -19,7 +19,8 @@ class ByteBufferSerializerDocSpec {
|
|||
|
||||
// Implement this method for compatibility with `SerializerWithStringManifest`.
|
||||
override def toBinary(o: AnyRef): Array[Byte] = {
|
||||
val buf = ByteBuffer.allocate(256) // in production code, aquire this from a BufferPool
|
||||
// in production code, aquire this from a BufferPool
|
||||
val buf = ByteBuffer.allocate(256)
|
||||
|
||||
toBinary(o, buf)
|
||||
buf.flip()
|
||||
|
|
@ -32,7 +33,7 @@ class ByteBufferSerializerDocSpec {
|
|||
override def fromBinary(bytes: Array[Byte], manifest: String): AnyRef =
|
||||
fromBinary(ByteBuffer.wrap(bytes), manifest)
|
||||
|
||||
// Actual implementation in the ByteBuffer versions of to/fromBinary:
|
||||
// Actual implementation in the ByteBuffer versions of to/fromBinary:
|
||||
override def toBinary(o: AnyRef, buf: ByteBuffer): Unit = ??? // implement actual logic here
|
||||
override def fromBinary(buf: ByteBuffer, manifest: String): AnyRef = ??? // implement actual logic here
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue