public class StreamPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
connectionid
The id of the connection.
|
protected java.lang.Object |
data
The stream data.
|
IComponentIdentifier |
receiver
The reqceiver.
|
protected java.lang.Integer |
sequencenumber
The sequence number.
|
protected byte |
type
The type of the message.
|
Constructor and Description |
---|
StreamPacket()
Create a new task.
|
StreamPacket(byte type,
java.lang.Integer connectionid,
java.lang.Object data,
java.lang.Integer sequencenumber,
IComponentIdentifier receiver)
Create a new task.
|
StreamPacket(StreamPacket packet)
Create a new task.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getConnectionId()
Get the connectionid.
|
java.lang.Object |
getData()
Get the data.
|
java.lang.Integer |
getSequenceNumber()
Get the sequenceNumber.
|
byte |
getType()
Get the type.
|
void |
setConnectionId(java.lang.Integer connectionid)
Set the connectionid.
|
void |
setData(java.lang.Object data)
Set the data.
|
void |
setSequenceNumber(java.lang.Integer sequenceNumber)
Set the sequenceNumber.
|
void |
setType(byte type)
Set the type.
|
protected byte type
protected java.lang.Integer connectionid
protected java.lang.Object data
protected java.lang.Integer sequencenumber
public IComponentIdentifier receiver
public StreamPacket()
public StreamPacket(byte type, java.lang.Integer connectionid, java.lang.Object data, java.lang.Integer sequencenumber, IComponentIdentifier receiver)
public StreamPacket(StreamPacket packet)
public byte getType()
public void setType(byte type)
type
- The type to setpublic java.lang.Object getData()
public void setData(java.lang.Object data)
data
- The data to setpublic java.lang.Integer getSequenceNumber()
public void setSequenceNumber(java.lang.Integer sequenceNumber)
sequenceNumber
- The sequenceNumber to setpublic java.lang.Integer getConnectionId()
public void setConnectionId(java.lang.Integer connectionid)
connectionid
- The connectionid to set