Examples of userAgentReaperTimeout()


Examples of org.jboss.aerogear.simplepush.server.DefaultSimplePushConfig.Builder.userAgentReaperTimeout()

        simplePushConfig.password(ServerDefinition.PASSWORD_ATTR.resolveModelAttribute(context, model).asString());
        if (notificationtTls.isDefined()) {
            simplePushConfig.endpointTls(notificationtTls.asBoolean());
        }
        if (reaperTimeout.isDefined()) {
            simplePushConfig.userAgentReaperTimeout(reaperTimeout.asLong());
        }
        if (notificationPrefix.isDefined()) {
            simplePushConfig.endpointPrefix(notificationPrefix.asString());
        }
        if (notificationAckInterval.isDefined()) {
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.DefaultSimplePushConfig.Builder.userAgentReaperTimeout()

        simplePushConfig.password(ServerDefinition.PASSWORD_ATTR.resolveModelAttribute(context, model).asString());
        if (notificationtTls.isDefined()) {
            simplePushConfig.endpointTls(notificationtTls.asBoolean());
        }
        if (reaperTimeout.isDefined()) {
            simplePushConfig.userAgentReaperTimeout(reaperTimeout.asLong());
        }
        if (notificationPrefix.isDefined()) {
            simplePushConfig.endpointPrefix(notificationPrefix.asString());
        }
        if (notificationAckInterval.isDefined()) {
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.DefaultSimplePushConfig.Builder.userAgentReaperTimeout()

        if (password != null) {
            builder.password(password.asText());
        }
        final JsonNode useragentReaperTimeout = json.get("useragent-reaper-timeout");
        if (useragentReaperTimeout != null) {
            builder.userAgentReaperTimeout(useragentReaperTimeout.asLong());
        }
        final JsonNode endpointHost = json.get("endpoint-host");
        if (endpointHost != null) {
            builder.endpointHost(endpointHost.asText());
        }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.userAgentReaperTimeout()

    public void handlerAdded(final ChannelHandlerContext ctx) throws Exception {
        if (started()) {
            return;
        }
        final SimplePushServerConfig config = simplePushServer.config();
        logger.info("Creating UserAgentReaper job : " + config.userAgentReaperTimeout());
        scheduleFuture = ctx.executor().scheduleAtFixedRate(new UserAgentReaper(simplePushServer),
                config.userAgentReaperTimeout(),
                config.userAgentReaperTimeout(),
                TimeUnit.MILLISECONDS);
        reaperStarted.set(true);
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.userAgentReaperTimeout()

            return;
        }
        final SimplePushServerConfig config = simplePushServer.config();
        logger.info("Creating UserAgentReaper job : " + config.userAgentReaperTimeout());
        scheduleFuture = ctx.executor().scheduleAtFixedRate(new UserAgentReaper(simplePushServer),
                config.userAgentReaperTimeout(),
                config.userAgentReaperTimeout(),
                TimeUnit.MILLISECONDS);
        reaperStarted.set(true);
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.userAgentReaperTimeout()

        }
        final SimplePushServerConfig config = simplePushServer.config();
        logger.info("Creating UserAgentReaper job : " + config.userAgentReaperTimeout());
        scheduleFuture = ctx.executor().scheduleAtFixedRate(new UserAgentReaper(simplePushServer),
                config.userAgentReaperTimeout(),
                config.userAgentReaperTimeout(),
                TimeUnit.MILLISECONDS);
        reaperStarted.set(true);
    }

    /**
 
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.userAgentReaperTimeout()

                .ackInterval(60000L)
                .password("test")
                .build();
        assertThat(config.endpointUrl(), equalTo("http://127.0.0.1:7777/update"));
        assertThat(config.endpointPrefix(), equalTo("/update"));
        assertThat(config.userAgentReaperTimeout(), is(1000L));
        assertThat(config.acknowledmentInterval(), is(60000L));
    }

    @Test
    public void buildConfigWithNullUserAgentReaperTimeout() {
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.userAgentReaperTimeout()

    @Test
    public void buildConfigWithNullUserAgentReaperTimeout() {
        final SimplePushServerConfig config = DefaultSimplePushConfig.create().userAgentReaperTimeout(null)
                .password("test")
                .build();
        assertThat(config.userAgentReaperTimeout(), is(604800000L));
    }

    @Test
    public void buildConfigWithNullAckInterval() {
        final SimplePushServerConfig config = DefaultSimplePushConfig.create().ackInterval(null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.