
org.refcodes.p2p.alt.serial.AcknowledgeMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-p2p-alt-serial Show documentation
Show all versions of refcodes-p2p-alt-serial Show documentation
Artifact for a serial based implementation of the P2P framework.
The newest version!
package org.refcodes.p2p.alt.serial;
import org.refcodes.mixin.EnabledAccessor;
/**
* The {@link AcknowledgeMode} determines the mode of operation regarding
* acknowledging hop count and send message transmissions.
*/
public enum AcknowledgeMode implements EnabledAccessor {
/**
* Enable acknowledgement transmissions and requests.
*/
ON(true),
/**
* Disable acknowledgement transmissions and requests.
*/
OFF(false);
private boolean _isEnabled;
private AcknowledgeMode( boolean isEnabled ) {
_isEnabled = isEnabled;
}
/**
* {@inheritDoc}
*/
@Override
public boolean isEnabled() {
return _isEnabled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy