Example usage for com.amazonaws.services.simpleworkflow.model DomainInfo equals

List of usage examples for com.amazonaws.services.simpleworkflow.model DomainInfo equals

Introduction

In this page you can find the example usage for com.amazonaws.services.simpleworkflow.model DomainInfo equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:org.wildfly.camel.test.common.aws.SWFUtils.java

License:Apache License

public static void registerDomain(AmazonSimpleWorkflowClient swfClient) {
    boolean registerDomain = true;
    ListDomainsRequest listreq = new ListDomainsRequest().withRegistrationStatus("REGISTERED");
    for (DomainInfo domain : swfClient.listDomains(listreq).getDomainInfos()) {
        registerDomain &= !DOMAIN.equals(domain.getName());
    }/*from w ww. ja  v a 2 s  .  c o  m*/
    if (registerDomain) {
        RegisterDomainRequest domain = new RegisterDomainRequest()
                .withWorkflowExecutionRetentionPeriodInDays("NONE").withName(DOMAIN);
        swfClient.registerDomain(domain);
    }
}