public class LengthFieldHandler extends NamedPipelineExtension implements Handler, PipelineExtension, PeerExtension
| length | payload |
| 00 00 00 05 | 6f 72 62 69 74 | ____orbit
| Modifier and Type | Field and Description |
|---|---|
static String |
LENGTH_FIELD_ENCODING |
| Constructor and Description |
|---|
LengthFieldHandler() |
LengthFieldHandler(String name,
String beforeHandlerName,
String afterHandlerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
onRead(HandlerContext ctx,
Object msg) |
Task |
write(HandlerContext ctx,
Object msg) |
getAfterHandlerName, getBeforeHandlerName, getName, setAfterHandlerName, setBeforeHandlerName, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, connect, disconnect, getAfterHandlerName, getBeforeHandlerName, getName, onActive, onEventTriggered, onExceptionCaught, onInactive, onRegisteredpublic static final String LENGTH_FIELD_ENCODING
public Task write(HandlerContext ctx, Object msg) throws Exception
write in interface PipelineExtensionwrite in interface HandlerExceptionpublic void onRead(HandlerContext ctx, Object msg) throws Exception
onRead in interface PipelineExtensiononRead in interface HandlerExceptionCopyright © 2019 Electronic Arts Inc. All rights reserved.