Example usage for org.apache.http.util Asserts check

List of usage examples for org.apache.http.util Asserts check

Introduction

In this page you can find the example usage for org.apache.http.util Asserts check.

Prototype

public static void check(boolean z, String str, Object... objArr) 

Source Link

Usage

From source file:org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.java

protected void ensureRunning() {
    final Status currentStatus = this.status.get();
    Asserts.check(currentStatus == Status.ACTIVE, "Request cannot be executed; " + "I/O reactor status: %s",
            currentStatus);//from w ww  .  j a  v a 2 s  .co m
}