Package net.messagevortex.accounting
Class DummyAccountant
java.lang.Object
net.messagevortex.AbstractDaemon
net.messagevortex.accounting.DummyAccountant
- All Implemented Interfaces:
Accountant,HeaderVerifier,RunningDaemon
A dummy accountant always agreeing to all transactions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDummy Verifier always returning for all requests an unlimited quota.Methods inherited from class net.messagevortex.AbstractDaemon
shutdownDaemon, startDaemon, stopDaemonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.messagevortex.RunningDaemon
shutdownDaemon, startDaemon, stopDaemon
-
Constructor Details
-
DummyAccountant
-
-
Method Details
-
verifyHeaderForProcessing
Dummy Verifier always returning for all requests an unlimited quota.
- Specified by:
verifyHeaderForProcessingin interfaceHeaderVerifier- Parameters:
header- the header to be verified- Returns:
- Number of bytes allowed to be processed
-