message
Class BatchSizeMessage

java.lang.Object
  extended by message.Message
      extended by message.BatchSizeMessage
All Implemented Interfaces:
java.lang.Comparable<Message>, BasicMessage, InternalMessage, Request

public class BatchSizeMessage
extends Message
implements Request, InternalMessage

InternalMessage used for communication between two OutputStrategy components, located on neighbored mixes. Transmits the batch size (the first mix used for the batch it is about to send) to the second mix.

Author:
Karl-Peter Fuchs

Field Summary
private  int batchSize
          Batch size the sending mix used for the upcoming batch (= batch he will send after this message).
static byte IDENTIFIER
          Identifier for this type of message.
 
Constructor Summary
BatchSizeMessage(int batchSize)
          Creates a new BatchSizeMessage containing the bypassed batchSize.
 
Method Summary
 int getBatchSize()
          Returns the variable batchSize's value (= Batch size the sending mix used for the upcoming batch (= batch he will send after this message)).
 
Methods inherited from class message.Message
compareTo, getByteMessage, getChannel, getChannelID, getMessageID, getNextMixChannelID, getTimeOfReceival, setByteMessage, setMessageID, setPayloadRange, setTimeOfReceival
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface message.BasicMessage
getByteMessage, getChannel, getChannelID, getMessageID, getNextMixChannelID, getTimeOfReceival, setByteMessage, setMessageID, setPayloadRange, setTimeOfReceival
 

Field Detail

IDENTIFIER

public static final byte IDENTIFIER
Identifier for this type of message. Necessary since messages are transmitted as byte streams which don't support the instanceOf operator.

See Also:
Constant Field Values

batchSize

private int batchSize
Batch size the sending mix used for the upcoming batch (= batch he will send after this message).

Constructor Detail

BatchSizeMessage

public BatchSizeMessage(int batchSize)
Creates a new BatchSizeMessage containing the bypassed batchSize.

Parameters:
batchSize - Batch size the sending mix used for the upcoming batch (= batch he will send after this message)
Method Detail

getBatchSize

public int getBatchSize()
Returns the variable batchSize's value (= Batch size the sending mix used for the upcoming batch (= batch he will send after this message)).

Returns:
The variable batchSize's value.