Package com.google_voltpatches.common.util.concurrent

Examples of com.google_voltpatches.common.util.concurrent.ListenableFuture


    @SuppressWarnings("rawtypes")
    public Pair<ListenableFuture, Boolean> streamMore(SystemProcedureExecutionContext context,
                                                      List<DBBPool.BBContainer> outputBuffers,
                                                      int[] rowCountAccumulator)
    {
        ListenableFuture writeFuture = null;

        prepareBuffers(outputBuffers);

        Pair<Long, int[]> serializeResult = context.tableStreamSerializeMore(m_tableId, m_type, outputBuffers);
        if (serializeResult.getFirst() == SERIALIZATION_ERROR) {
View Full Code Here


            // Stream more and add a listener to handle any failures
            Pair<ListenableFuture, Boolean> streamResult =
                    m_streamers.get(tableId).streamMore(context, outputBuffers, null);
            if (streamResult.getFirst() != null) {
                final ListenableFuture writeFutures = streamResult.getFirst();
                writeFutures.addListener(new Runnable() {
                    @Override
                    public void run()
                    {
                        try {
                            writeFutures.get();
                        } catch (Throwable t) {
                            if (m_lastSnapshotSucceded) {
                                if (t instanceof StreamSnapshotTimeoutException ||
                                        t.getCause() instanceof StreamSnapshotTimeoutException) {
                                    //This error is already logged by the watchdog when it generates the exception
View Full Code Here

TOP

Related Classes of com.google_voltpatches.common.util.concurrent.ListenableFuture

Copyright © 2018 www.massapicom. 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.