Package jadex.bridge.component.streams
Class StreamPacket
- java.lang.Object
-
- jadex.bridge.component.streams.StreamPacket
-
public class StreamPacket extends java.lang.Object
Data container for a streaming packet.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
type
protected byte type
The type of the message.
-
connectionid
protected java.lang.Integer connectionid
The id of the connection.
-
data
protected java.lang.Object data
The stream data.
-
sequencenumber
protected java.lang.Integer sequencenumber
The sequence number.
-
receiver
public IComponentIdentifier receiver
The reqceiver.
-
-
Constructor Detail
-
StreamPacket
public StreamPacket()
Create a new task.
-
StreamPacket
public StreamPacket(byte type, java.lang.Integer connectionid, java.lang.Object data, java.lang.Integer sequencenumber, IComponentIdentifier receiver)
Create a new task.
-
StreamPacket
public StreamPacket(StreamPacket packet)
Create a new task.
-
-
Method Detail
-
getType
public byte getType()
Get the type.- Returns:
- the type
-
setType
public void setType(byte type)
Set the type.- Parameters:
type
- The type to set
-
getData
public java.lang.Object getData()
Get the data.- Returns:
- the data
-
setData
public void setData(java.lang.Object data)
Set the data.- Parameters:
data
- The data to set
-
getSequenceNumber
public java.lang.Integer getSequenceNumber()
Get the sequenceNumber.- Returns:
- the sequenceNumber
-
setSequenceNumber
public void setSequenceNumber(java.lang.Integer sequenceNumber)
Set the sequenceNumber.- Parameters:
sequenceNumber
- The sequenceNumber to set
-
getConnectionId
public java.lang.Integer getConnectionId()
Get the connectionid.- Returns:
- the connectionid
-
setConnectionId
public void setConnectionId(java.lang.Integer connectionid)
Set the connectionid.- Parameters:
connectionid
- The connectionid to set
-
-