public final class Bundler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Bundler.FeeCalculator |
static interface |
Bundler.Filter
Bundling filter - transactions for which the
Bundler.Filter.ok(Bundler, ChildTransaction) method returns false are not processed by the Bundler.Rule |
static class |
Bundler.MinFeeCalculator |
static class |
Bundler.ProportionalFeeCalculator |
static class |
Bundler.Rule
Bundling rule - transactions that match the filter and minimum rate of the rule are bundled.
|
Modifier and Type | Method and Description |
---|---|
static Bundler |
addBundlingRule(ChildChain childChain,
byte[] privateKey,
Bundler.Rule rule) |
static Bundler |
addOrChangeBundler(ChildChain childChain,
byte[] privateKey,
long totalFeesLimitFQT,
java.util.List<Bundler.Rule> bundlingRules) |
static Bundler.Filter |
createBundlingFilter(java.lang.String name,
java.lang.String parameter) |
static Bundler.Rule |
createBundlingRule(long minRateNQTPerFXT,
long overpayFQTPerFXT,
java.lang.String feeCalculatorName,
java.util.List<Bundler.Filter> filters) |
static java.util.List<Bundler> |
getAccountBundlers(long accountId) |
long |
getAccountId() |
static java.util.List<Bundler> |
getAllBundlers() |
static java.util.Collection<Bundler.FeeCalculator> |
getAvailableFeeCalculators() |
static java.util.Collection<Bundler.Filter> |
getAvailableFilters() |
static Bundler |
getBundler(ChildChain childChain,
long accountId) |
BundlerRate |
getBundlerRate() |
static java.util.List<BundlerRate> |
getBundlerRates() |
java.util.List<Bundler.Rule> |
getBundlingRules() |
ChildChain |
getChildChain() |
static java.util.List<Bundler> |
getChildChainBundlers(ChildChain childChain) |
long |
getConfirmedTotalFeesFQT() |
long |
getCurrentTotalFeesFQT() |
byte[] |
getPublicKey() |
long |
getTotalFeesLimitFQT() |
static void |
init() |
static void |
stopAccountBundlers(long accountId) |
static void |
stopAllBundlers() |
static Bundler |
stopBundler(ChildChain childChain,
long accountId) |
static void |
stopChildChainBundlers(ChildChain childChain) |
public static Bundler getBundler(ChildChain childChain, long accountId)
public static Bundler.Filter createBundlingFilter(java.lang.String name, java.lang.String parameter)
public static Bundler.Rule createBundlingRule(long minRateNQTPerFXT, long overpayFQTPerFXT, java.lang.String feeCalculatorName, java.util.List<Bundler.Filter> filters)
public static Bundler addOrChangeBundler(ChildChain childChain, byte[] privateKey, long totalFeesLimitFQT, java.util.List<Bundler.Rule> bundlingRules)
public static Bundler addBundlingRule(ChildChain childChain, byte[] privateKey, Bundler.Rule rule)
public static java.util.List<Bundler> getAllBundlers()
public static java.util.List<Bundler> getChildChainBundlers(ChildChain childChain)
public static java.util.List<Bundler> getAccountBundlers(long accountId)
public static java.util.List<BundlerRate> getBundlerRates()
public static Bundler stopBundler(ChildChain childChain, long accountId)
public static void stopAccountBundlers(long accountId)
public static void stopChildChainBundlers(ChildChain childChain)
public static void stopAllBundlers()
public static java.util.Collection<Bundler.Filter> getAvailableFilters()
public static java.util.Collection<Bundler.FeeCalculator> getAvailableFeeCalculators()
public static void init()
public final ChildChain getChildChain()
public final byte[] getPublicKey()
public final long getAccountId()
public final long getTotalFeesLimitFQT()
public final long getCurrentTotalFeesFQT()
public final long getConfirmedTotalFeesFQT()
public java.util.List<Bundler.Rule> getBundlingRules()
public final BundlerRate getBundlerRate()
null
if all rules are filtered