package com.cqh.Hazelcast_PubSub;
import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by yl1794 on 2018/4/27.
*/
//要求将股票的买入卖出价格在任何时间发布给做市商
public class StockPrice implements Serializable{
private static final long serialVersionUID = 1L;
private final BigDecimal bid;
private final BigDecimal ask;
private final String code;
private final String description;
private final long timestamp;
/**
* Create a StockPrice for the given stock at a given moment
*/
public StockPrice(BigDecimal bid, BigDecimal ask, String code, String description,
long timestamp) {
super();
this.bid = bid;
this.ask = ask;
this.code = code;
this.description = description;
this.timestamp = timestamp;
}
public BigDecimal getBid() {
return bid;
}
pu