Examples of idle()


Examples of com.sissi.context.JIDContext.idle()

public class LastJIDProcessor extends ProxyProcessor {

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JIDContext to = super.findOne(protocol.parent().to() ? super.build(protocol.parent().getTo()) : context.jid(), true);
    context.write(protocol.cast(Last.class).seconds().seconds(to.idle()).text(to.status().clauses().find(StatusClauses.KEY_STATUS)).parent().reply().setType(ProtocolType.RESULT));
    return false;
  }
}
View Full Code Here

Examples of com.sun.mail.imap.IMAPFolder.idle()

        if (messageCountListener == null) {
            createMessageCountListener();
        }
        folder.addMessageCountListener(messageCountListener);
        try {
            imapFolder.idle();
        }
        finally {
            folder.removeMessageCountListener(messageCountListener);
        }
    }
View Full Code Here

Examples of com.sun.mail.imap.IMAPFolder.idle()

            int freq = getFrequency();
            boolean supportsIdle = false;
            try {
                if (folder instanceof IMAPFolder) {
                    IMAPFolder f = (IMAPFolder) folder;
                    f.idle();
                    supportsIdle = true;
                }
            }
            catch (FolderClosedException fex) {
                throw fex;
View Full Code Here

Examples of com.sun.mail.imap.IMAPFolder.idle()

                supportsIdle = false;
            }
            while (messageListener != null) {
                if (supportsIdle && folder instanceof IMAPFolder) {
                    IMAPFolder f = (IMAPFolder) folder;
                    f.idle();
                }
                else {
                    Thread.sleep(freq); // sleep for freq milliseconds

                    // This is to force the IMAP server to send us
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.RawStoreFactory.idle()

        // flush and empty cache to make sure rereading stuff works.
        RawStoreFactory rawstore =
            (RawStoreFactory) Monitor.findServiceModule(
                this.store_module, RawStoreFactory.MODULE);

        rawstore.idle();

        // now make sure that additional splits don't cause delete bits to
        // be enabled (one early bug did so).
       
        for (int i = 200; i >= 0; i -= 3)
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.