Package org.activecomponents.udp
Class MessagePart
- java.lang.Object
- 
- org.activecomponents.udp.MessagePart
 
- 
 public class MessagePart extends java.lang.ObjectA message part in transmission.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.net.DatagramPacketdgpThe packet.protected longidPacket ID.protected OutgoingMessagemessageMessage containing this part.protected booleanresendFlag if the part has been send more than once.protected longresendtimePart scheduled resend time.protected longsenttimePart sent time.
 - 
Constructor SummaryConstructors Constructor Description MessagePart(long id, java.net.DatagramPacket dgp, OutgoingMessage message)Creates a queued message part.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetId()Gets the ID.OutgoingMessagegetMessage()Returns the message containing this part.java.net.DatagramPacketgetPacket()Gets the packet.longgetResendTime()Gets the resendtime.longgetSentTime()Gets the senttime.booleanisResend()Gets the resend.voidsetResend(boolean resend)Sets the resend.voidsetResentTime(long resendtime)Sets the resendtime.voidsetSentTime(long senttime)Sets the senttime.
 
- 
- 
- 
Field Detail- 
messageprotected OutgoingMessage message Message containing this part.
 - 
idprotected long id Packet ID.
 - 
senttimeprotected long senttime Part sent time.
 - 
resendtimeprotected long resendtime Part scheduled resend time.
 - 
dgpprotected java.net.DatagramPacket dgp The packet.
 - 
resendprotected boolean resend Flag if the part has been send more than once.
 
- 
 - 
Constructor Detail- 
MessagePartpublic MessagePart(long id, java.net.DatagramPacket dgp, OutgoingMessage message)Creates a queued message part.
 
- 
 - 
Method Detail- 
getIdpublic long getId() Gets the ID.- Returns:
- The ID.
 
 - 
getMessagepublic OutgoingMessage getMessage() Returns the message containing this part.- Returns:
- The message.
 
 - 
getSentTimepublic long getSentTime() Gets the senttime.- Returns:
- The senttime
 
 - 
setSentTimepublic void setSentTime(long senttime) Sets the senttime.- Parameters:
- senttime- The senttime to set
 
 - 
getResendTimepublic long getResendTime() Gets the resendtime.- Returns:
- The resendtime
 
 - 
setResentTimepublic void setResentTime(long resendtime) Sets the resendtime.- Parameters:
- resendtime- The resendtime to set
 
 - 
getPacketpublic java.net.DatagramPacket getPacket() Gets the packet.- Returns:
- The packet.
 
 - 
isResendpublic boolean isResend() Gets the resend.- Returns:
- The resend
 
 - 
setResendpublic void setResend(boolean resend) Sets the resend.- Parameters:
- resend- The resend to set
 
 
- 
 
-