public class MotanV2Header extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MotanV2Header.MessageStatus |
| Modifier and Type | Field and Description |
|---|---|
static short |
MAGIC |
| Constructor and Description |
|---|
MotanV2Header() |
| Modifier and Type | Method and Description |
|---|---|
static MotanV2Header |
buildHeader(byte[] headerBytes) |
boolean |
equals(Object o) |
long |
getRequestId() |
int |
getSerialize() |
int |
getStatus() |
int |
getVersion() |
int |
hashCode() |
boolean |
isGzip() |
boolean |
isHeartbeat() |
boolean |
isOneway() |
boolean |
isProxy() |
boolean |
isRequest() |
void |
setGzip(boolean gzip) |
void |
setHeartbeat(boolean heartbeat) |
void |
setOneway(boolean oneway) |
void |
setProxy(boolean proxy) |
void |
setRequest(boolean request) |
void |
setRequestId(long requestId) |
void |
setSerialize(int serialize) |
void |
setStatus(int status) |
void |
setVersion(int version) |
byte[] |
toBytes() |
public static final short MAGIC
public int getVersion()
public void setVersion(int version)
public boolean isHeartbeat()
public void setHeartbeat(boolean heartbeat)
public boolean isGzip()
public void setGzip(boolean gzip)
public boolean isOneway()
public void setOneway(boolean oneway)
public boolean isProxy()
public void setProxy(boolean proxy)
public boolean isRequest()
public void setRequest(boolean request)
public int getStatus()
public void setStatus(int status)
public int getSerialize()
public void setSerialize(int serialize)
public long getRequestId()
public void setRequestId(long requestId)
public byte[] toBytes()
public static MotanV2Header buildHeader(byte[] headerBytes)
Copyright © 2020. All rights reserved.