本文整理汇总了Java中com.paritytrading.parity.net.pmd.PMD.Version方法的典型用法代码示例。如果您正苦于以下问题:Java PMD.Version方法的具体用法?Java PMD.Version怎么用?Java PMD.Version使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.paritytrading.parity.net.pmd.PMD
的用法示例。
在下文中一共展示了PMD.Version方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PMDSink
import com.paritytrading.parity.net.pmd.PMD; //导入方法依赖的package包/类
public PMDSink(File file) throws IOException {
version = new PMD.Version();
seconds = new PMD.Seconds();
orderAdded = new PMD.OrderAdded();
orderExecuted = new PMD.OrderExecuted();
orderCanceled = new PMD.OrderCanceled();
orderDeleted = new PMD.OrderDeleted();
brokenTrade = new PMD.BrokenTrade();
currentSecond = 0;
instrument = new Long2LongOpenHashMap();
side = new Long2ByteOpenHashMap();
buffer = ByteBuffer.allocate(BUFFER_CAPACITY);
writer = BinaryFILEWriter.open(file);
}
示例2: MarketData
import com.paritytrading.parity.net.pmd.PMD; //导入方法依赖的package包/类
private MarketData(MoldUDP64Server transport, MoldUDP64RequestServer requestTransport) {
this.version = new PMD.Version();
this.orderAdded = new PMD.OrderAdded();
this.orderExecuted = new PMD.OrderExecuted();
this.orderCanceled = new PMD.OrderCanceled();
this.transport = transport;
this.requestTransport = requestTransport;
this.messages = new MoldUDP64DefaultMessageStore();
this.packet = new MoldUDP64DownstreamPacket();
this.buffer = ByteBuffer.allocateDirect(1024);
}
示例3: version
import com.paritytrading.parity.net.pmd.PMD; //导入方法依赖的package包/类
@Override
public void version(PMD.Version message) {
}
示例4: version
import com.paritytrading.parity.net.pmd.PMD; //导入方法依赖的package包/类
@Override
public void version(PMD.Version message) {
if (message.version != PMD.VERSION)
error("Unsupported protocol version");
}