public void clear() { dictionaryRequest.clear(); channel = null; isInUse = false; }
protected int sendRequest(ChannelSession chnl, String dictionaryName, int streamId, long serviceId, Error error) { TransportBuffer msgBuf = null; /* get a buffer for the dictionary request */ msgBuf = chnl.getTransportBuffer(TRANSPORT_BUFFER_SIZE_REQUEST, false, error); if (msgBuf != null) { /* encode dictionary request */ dictionaryRequest.clear(); dictionaryRequest.dictionaryName().data(dictionaryName); dictionaryRequest.streamId(streamId); dictionaryRequest.serviceId((int)serviceId); encIter.clear(); encIter.setBufferAndRWFVersion(msgBuf, chnl.channel().majorVersion(), chnl.channel().minorVersion()); int ret = dictionaryRequest.encode(encIter); if (ret != CodecReturnCodes.SUCCESS) { error.text("encodeDictionaryRequest(): Failed <code: " + error.errorId() + ">"); return ret; } System.out.println(dictionaryRequest.toString()); //send request return chnl.write(msgBuf, error); } else { return CodecReturnCodes.FAILURE; } }
_dictionaryRequest.clear();
dictionaryRequest.clear();
_fieldDictionaryRequest.clear();
_enumDictionaryRequest.clear();
_dictionaryRequest.clear(); int ret = _dictionaryRequest.decode(dIter, msg); if (ret != CodecReturnCodes.SUCCESS)
int decodeDictionaryReqMsg(DictionaryRequest rdmDictionaryRequest, RequestMsg rsslRequestMsg) { rdmDictionaryRequest.clear(); if (rsslRequestMsg.msgClass() != MsgClasses.REQUEST) return CodecReturnCodes.FAILURE; rdmDictionaryRequest.streamId(rsslRequestMsg.streamId()); if (rsslRequestMsg.checkStreaming()) rsslRequestMsg.applyStreaming(); MsgKey msgKey = rsslRequestMsg.msgKey(); if (msgKey == null) return CodecReturnCodes.FAILURE; if (!msgKey.checkHasFilter()) return CodecReturnCodes.FAILURE; if (msgKey.checkHasServiceId()) rdmDictionaryRequest.serviceId(msgKey.serviceId()); if (!msgKey.checkHasName()) return CodecReturnCodes.FAILURE; Buffer name = msgKey.name(); rdmDictionaryRequest.dictionaryName().data(name.data(), name.position(), name.length()); rdmDictionaryRequest.verbosity((int)msgKey.filter()); return CodecReturnCodes.SUCCESS; }
_dictionaryRequest.clear(); if (dictionaryType == FIELD_DICTIONARY_TYPE)
encRDMMsg.clear();