MessageHandler(FIXMessageListener downstream) { this.downstream = downstream; this.string = new StringBuilder(config.getFieldCapacity()); }
/** * Create a message container. * * @return a message container */ public FIXMessage create() { return new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); }
/** * Create a message container. * * @return a message container */ public FIXMessage create() { return new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); }
/** * Create a message parser. * * @param config the parser configuration * @param listener the message listener */ public FIXMessageParser(FIXConfig config, FIXMessageListener listener) { this.message = new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); this.checkSumEnabled = config.isCheckSumEnabled(); this.listener = listener; this.beginString = new FIXValue(BEGIN_STRING_FIELD_CAPACITY); this.bodyLength = new FIXValue(BODY_LENGTH_FIELD_CAPACITY); this.checkSum = new FIXValue(CHECK_SUM_FIELD_CAPACITY); }
this.txMessage = new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); this.currentTimestamp = new StringBuilder(config.getFieldCapacity());
new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()), config.isCheckSumEnabled()); this.txMessage = new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); this.currentTimestamp = new StringBuilder(config.getFieldCapacity());