Class PollerRequestBuilderImpl

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.pollers.PollerRequestBuilder

    public class PollerRequestBuilderImpl
    extends Object
    implements org.opennms.integration.api.v1.pollers.PollerRequestBuilder
    Builder implementation for ServicePollerClient.
    • Method Detail

      • withPollerClassName

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withPollerClassName​(String className)
        Specified by:
        withPollerClassName in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • withAddress

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAddress​(InetAddress address)
        Specified by:
        withAddress in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • withServiceName

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withServiceName​(String serviceName)
        Specified by:
        withServiceName in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • withAttribute

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttribute​(String key,
                                                                                         String value)
        Specified by:
        withAttribute in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • withAttributes

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttributes​(Map<String,​String> attributes)
        Specified by:
        withAttributes in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • withTimeToLive

        public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withTimeToLive​(Long ttlInMs)
        Specified by:
        withTimeToLive in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder
      • execute

        public CompletableFuture<org.opennms.integration.api.v1.pollers.PollerResult> execute()
        Specified by:
        execute in interface org.opennms.integration.api.v1.pollers.PollerRequestBuilder