Example usage for com.mongodb.async SingleResultCallback interface-usage

List of usage examples for com.mongodb.async SingleResultCallback interface-usage

Introduction

In this page you can find the example usage for com.mongodb.async SingleResultCallback interface-usage.

Usage

From source file org.openo.commontosca.inventory.core.mongo.DeferredSingleResult.java

public class DeferredSingleResult<R> extends SimpleDeferredObject<R> implements SingleResultCallback<R> {

    @Override
    public void onResult(R result, Throwable t) {
        if (t != null) {
            this.reject(t);