
public class StartupPacket extends AbstractLocalPacket
1 localId (Integer): localId
EMPTY_ARRAY, end, global, header, LOCAL_HEADER_SIZE, middle| Constructor and Description |
|---|
StartupPacket(Integer newId,
boolean fromSsl) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAllBuffers(LocalChannelReference lcr,
int networkHeader)
Prepare the 3 buffers Header, Middle and End
|
static StartupPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
Integer |
getLocalId() |
byte |
getType() |
boolean |
hasGlobalBuffer() |
boolean |
isFromSsl() |
String |
toString() |
clear, createEnd, createHeader, createMiddle, getLocalPacket, getLocalPacketForNetworkPacket, retainpublic StartupPacket(Integer newId, boolean fromSsl)
newId - public static StartupPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf)
headerLength - middleLength - endLength - buf - public final boolean hasGlobalBuffer()
hasGlobalBuffer in class AbstractLocalPacketpublic final void createAllBuffers(LocalChannelReference lcr, int networkHeader)
AbstractLocalPacketcreateAllBuffers in class AbstractLocalPacketpublic final String toString()
toString in class AbstractLocalPacketpublic final byte getType()
getType in class AbstractLocalPacketpublic final Integer getLocalId()
public final boolean isFromSsl()
Copyright © 2009–2022 Waarp. All rights reserved.