public enum QDContract extends Enum<QDContract> implements QDCollector.Factory
QDCollector
.Modifier and Type | Method and Description |
---|---|
QDCollector |
createCollector(QDFactory factory,
QDCollector.Builder<?> builder)
Creates collector instance using a given base factory, data scheme, and stats.
|
QDContract |
getContract()
Returns this factory's contract.
|
Class<? extends QDCollector> |
getInterface() |
QDStats.SType |
getStatsType()
Returns type of the stats stat should be used for collector created by this factory.
|
boolean |
hasSnapshotData() |
boolean |
hasTime() |
String |
toString() |
boolean |
usesEventFlags() |
static QDContract |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QDContract[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QDContract TICKER
public static final QDContract STREAM
public static final QDContract HISTORY
public static QDContract[] values()
for (QDContract c : QDContract.values()) System.out.println(c);
public static QDContract valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<? extends QDCollector> getInterface()
public QDContract getContract()
QDCollector.Factory
getContract
in interface QDCollector.Factory
public QDCollector createCollector(QDFactory factory, QDCollector.Builder<?> builder)
QDCollector.Factory
createCollector
in interface QDCollector.Factory
public QDStats.SType getStatsType()
QDCollector.Factory
getStatsType
in interface QDCollector.Factory
QDStats.SType#TICKER
, QDStats.SType#STREAM
, or QDStats.SType#HISTORY
public boolean hasTime()
public boolean hasSnapshotData()
public boolean usesEventFlags()
public String toString()
toString
in class Enum<QDContract>
Copyright © 2002–2025 Devexperts LLC. All rights reserved.