Java Code Examples for com.microsoft.azure.management.apigeneration.Beta.SinceVersion#V1_1_0

The following examples show how to use com.microsoft.azure.management.apigeneration.Beta.SinceVersion#V1_1_0 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RestClient.java    From botbuilder-java with MIT License 5 votes vote down vote up
/**
 * Closes the HTTP client and recycles the resources associated. The threads will
 * be recycled after 60 seconds of inactivity.
 */
@Beta(SinceVersion.V1_1_0)
public void close() {
    httpClient.dispatcher().executorService().shutdown();
    httpClient.connectionPool().evictAll();
    synchronized (httpClient.connectionPool()) {
        httpClient.connectionPool().notifyAll();
    }
    synchronized (AsyncTimeout.class) {
        AsyncTimeout.class.notifyAll();
    }
}
 
Example 2
Source File: RestClient.java    From autorest-clientruntime-for-java with MIT License 5 votes vote down vote up
/**
 * Closes the HTTP client and recycles the resources associated. The threads will
 * be recycled after 60 seconds of inactivity.
 */
@Beta(SinceVersion.V1_1_0)
public void close() {
    httpClient.dispatcher().executorService().shutdown();
    httpClient.connectionPool().evictAll();
    synchronized (httpClient.connectionPool()) {
        httpClient.connectionPool().notifyAll();
    }
    synchronized (AsyncTimeout.class) {
        AsyncTimeout.class.notifyAll();
    }
}
 
Example 3
Source File: Azure.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
/**
 * @return entry point to managing Container Registries.
 */
@Beta(SinceVersion.V1_1_0)
public Registries containerRegistries() {
    return containerRegistryManager.containerRegistries();
}
 
Example 4
Source File: RestClient.java    From botbuilder-java with MIT License 2 votes vote down vote up
/**
 * Closes the HTTP client, recycles the resources associated, and waits
 * for 60 seconds for all the threads to be recycled.
 *
 * @throws InterruptedException thrown when the 60-sec wait is interrupted
 */
@Beta(SinceVersion.V1_1_0)
public void closeAndWait() throws InterruptedException {
    close();
    Thread.sleep(60000);
}
 
Example 5
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * @return disabled SSL protocols
 */
@Beta(SinceVersion.V1_1_0)
Collection<ApplicationGatewaySslProtocol> disabledSslProtocols();
 
Example 6
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Disables the specified SSL protocol.
 * @param protocol an SSL protocol
 * @return the next stage of the definition
 */
@Beta(SinceVersion.V1_1_0)
WithCreate withDisabledSslProtocol(ApplicationGatewaySslProtocol protocol);
 
Example 7
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Disables the specified SSL protocols.
 * @param protocols SSL protocols
 * @return the next stage of the definition
 */
@Beta(SinceVersion.V1_1_0)
WithCreate withDisabledSslProtocols(ApplicationGatewaySslProtocol...protocols);
 
Example 8
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Disables the specified SSL protocol.
 * @param protocol an SSL protocol
 * @return the next stage of the update
 */
@Beta(SinceVersion.V1_1_0)
Update withDisabledSslProtocol(ApplicationGatewaySslProtocol protocol);
 
Example 9
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Disables the specified SSL protocols.
 * @param protocols SSL protocols
 * @return the next stage of the update
 */
@Beta(SinceVersion.V1_1_0)
Update withDisabledSslProtocols(ApplicationGatewaySslProtocol...protocols);
 
Example 10
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Enables the specified SSL protocol, if previously disabled.
 * @param protocol an SSL protocol
 * @return the next stage of the update
 */
@Beta(SinceVersion.V1_1_0)
Update withoutDisabledSslProtocol(ApplicationGatewaySslProtocol protocol);
 
Example 11
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Enables the specified SSL protocols, if previously disabled.
 * @param protocols SSL protocols
 * @return the next stage of the update
 */
@Beta(SinceVersion.V1_1_0)
Update withoutDisabledSslProtocols(ApplicationGatewaySslProtocol...protocols);
 
Example 12
Source File: ApplicationGateway.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Enables all SSL protocols, if previously disabled.
 * @return the next stage of the update
 */
@Beta(SinceVersion.V1_1_0)
@Method
Update withoutAnyDisabledSslProtocols();
 
Example 13
Source File: RestClient.java    From autorest-clientruntime-for-java with MIT License 2 votes vote down vote up
/**
 * Closes the HTTP client, recycles the resources associated, and waits
 * for 60 seconds for all the threads to be recycled.
 *
 * @throws InterruptedException thrown when the 60-sec wait is interrupted
 */
@Beta(SinceVersion.V1_1_0)
public void closeAndWait() throws InterruptedException {
    close();
    Thread.sleep(60000);
}