Package org.jboss.aerogear.simplepush.server

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


            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

        }
        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

                .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

    @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.