Examples of PutRequestMessage


Examples of org.jdesktop.wonderland.modules.sharedstate.common.messages.PutRequestMessage

        // put the new value into the map
        final VersionedResult res = backing.putLocal(key, value);
       
        // send the request for a change, and revert if there is an error
        channel.send(new PutRequestMessage(getName(), key, value),
                new OKErrorResponseListener()
        {
            @Override
            public void onSuccess(MessageID messageID) {
                // do nothing
View Full Code Here

Examples of org.sdnplatform.sync.thrift.PutRequestMessage

    @Override
    public void put(ByteArray key, Versioned<byte[]> value)
            throws SyncException {
        StoreUtils.assertValidKey(key);
        PutRequestMessage prm = new PutRequestMessage();

        AsyncMessageHeader header = new AsyncMessageHeader();
        header.setTransactionId(syncManager.getTransactionId());
        prm.setHeader(header);
        prm.setVersionedValue(TProtocolUtil.getTVersionedValue(value));
        prm.setKey(key.get());
        prm.setStoreName(storeName);
       
        SyncMessage bsm = new SyncMessage(MessageType.PUT_REQUEST);
        bsm.setPutRequest(prm);
       
        getReply(header.getTransactionId(), bsm);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.