Package org.voltdb

Examples of org.voltdb.SimpleClientResponseAdapter.registerCallback()


    {
        final SnapshotInitiationInfo snapInfo = new SnapshotInitiationInfo(path, nonce, blocking, format, data);
        final SimpleClientResponseAdapter adapter =
                new SimpleClientResponseAdapter(ClientInterface.SNAPSHOT_UTIL_CID, "SnapshotUtilAdapter", true);
        final LinkedBlockingQueue<ClientResponse> responses = new LinkedBlockingQueue<ClientResponse>();
        adapter.registerCallback(clientHandle, new SimpleClientResponseAdapter.Callback() {
            @Override
            public void handleResponse(ClientResponse response)
            {
                responses.offer(response);
            }
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.