public class MoldUDP64DownstreamPacket extends Object
Constructor and Description |
---|
MoldUDP64DownstreamPacket()
Create a downstream packet.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MessageListener listener)
Apply the message listener to each message in this downstream packet.
|
void |
clear()
Clear this downstream packet.
|
int |
messageCount()
Get the message count.
|
ByteBuffer |
payload()
Get the payload.
|
void |
put(ByteBuffer buffer)
Append a message to this downstream packet.
|
int |
remaining()
Get the number of bytes remaining.
|
public MoldUDP64DownstreamPacket()
public void put(ByteBuffer buffer) throws MoldUDP64Exception
buffer
- a buffer containing a messageMoldUDP64Exception
- if the message is too largepublic void apply(MessageListener listener) throws IOException
listener
- a message listenerIOException
- if an I/O error occurs in the message listenerpublic void clear()
public int messageCount()
public ByteBuffer payload()
public int remaining()
Copyright © 2017. All rights reserved.