public final class FragmentationOptions
extends java.lang.Object
FragmentSender
s and
FragmentReceiver
s in this package.Modifier and Type | Field and Description |
---|---|
int |
emptySendsTillForced
|
boolean |
equalityVerifyFragments
|
int |
fragmentationSplitSize
|
int |
maximumFragmentAge
The maximum age of fragments for a specified packet in seconds before those fragments are purged.
|
boolean |
verifyFragments
|
Constructor and Description |
---|
FragmentationOptions() |
FragmentationOptions(FragmentationOptions toCopy)
Creates a copy of the provided FragmentationOptions.
|
Modifier and Type | Method and Description |
---|---|
void |
setupReceiver(FragmentReceiver receiver)
Sets-up the provided
FragmentReceiver with parameters. |
void |
setupSender(FragmentSender sender)
Sets-up the provided
FragmentSender with parameters. |
void |
validate()
Validates the parameters within this structure.
|
public int maximumFragmentAge
public int fragmentationSplitSize
public int emptySendsTillForced
public boolean verifyFragments
public boolean equalityVerifyFragments
public FragmentationOptions()
public FragmentationOptions(FragmentationOptions toCopy)
toCopy
- The options to copy.java.lang.NullPointerException
- toCopy is null.public void validate()
java.lang.IllegalArgumentException
- maximumFragmentAge is less than 2, fragmentationSplitSize is less than 1 or emptySendsTillForced is less than 1.public void setupSender(FragmentSender sender)
FragmentSender
with parameters.sender
- The sender to set up.java.lang.IllegalArgumentException
- A parameter is incorrect.public void setupReceiver(FragmentReceiver receiver)
FragmentReceiver
with parameters.receiver
- The receiver to set up.java.lang.IllegalArgumentException
- A parameter is incorrect.