Package com.samskivert.util

Examples of com.samskivert.util.Interval


            ParlorSender.gameIsReady(bobj, _gameobj.getOid());
        }

        // start up a no-show timer if needed
        if (needsNoShowTimer()) {
            (_noShowInterval = new Interval(_omgr) {
                @Override
                public void expired () {
                    checkForNoShows();
                }
            }).schedule(getNoShowTime());
View Full Code Here


        sendStatusUpdate();

        long statusInterval = getStatusInterval();
        if (_statusInterval == null && statusInterval > 0) {
            // register the status update interval to address subsequent periodic updates
            _statusInterval = new Interval(_omgr) {
                @Override
                public void expired () {
                    sendStatusUpdate();
                }
            };
View Full Code Here

    public void init (PlaceManager plmgr, RootDObjectManager omgr, InvocationManager invmgr)
    {
        super.init(plmgr, omgr, invmgr);

        // Create these intervals HERE after the _omgr is actually initialized.
        _turnTimeoutInterval = new Interval(_omgr) {
            @Override
            public void expired () {
                _turnTimedOut = true;
                turnTimedOut();
            }
        };
        _endTrickInterval = new Interval(_omgr) {
            @Override
            public void expired () {
                endTrick();
            }
        };
View Full Code Here

            _invmgr.clearDispatcher(_trobj.tourneyService);
            _trobj.tourneyService = null;
        }

        // destroy the object in a couple of minutes
        new Interval(_omgr) {
            @Override
            public void expired () {
                _omgr.destroyObject(_trobj.getOid());
            }
        }.schedule(MINUTE * 2);
 
View Full Code Here

        // enough to fully initialize and start listening on its socket
        // before we try to logon; there's no good way for this otherwise
        // wholly independent thread to wait for the server to be ready as
        // in normal circumstances they are entirely different processes;
        // so we just wait half a second which does the job
        new Interval(Interval.RUN_DIRECT) {
            @Override
            public void expired () {
                _client.getParlorContext().getClient().logon();
            }
        }.schedule(500L);
View Full Code Here

            log.info("UserManager initialized", "acook", _userAuthCookie, "login", _loginURL);
        }

        // register a cron job to prune the session table every hour
        if (pruneQueue != null) {
            _pruner = new Interval(pruneQueue) {
                @Override public void expired () {
                    try {
                        _repository.pruneSessions();
                    } catch (PersistenceException pe) {
                        log.warning("Error pruning session table.", pe);
View Full Code Here

TOP

Related Classes of com.samskivert.util.Interval

Copyright © 2018 www.massapicom. 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.