/** Removes the event queue of the specified scope. * @param name the queue name. * @param scope the scope of the event queue. Currently, * it supports {@link #DESKTOP}, {@link #GROUP}, * {@link #SESSION}, and {@link #APPLICATION}. * Note: {@link #GROUP} requires ZK EE. * @return true if it is removed successfully */ public static boolean remove(String name, String scope) { return getProvider().remove(name, scope); }
/** Removes the event queue of the specified session. * <p>Unlike {@link #remove(String, String)}, this method * can be called without an activated execution. * @param name the queue name. * @param sess the session that the event queue is located (i.e., * the session scope) * @return true if it is removed successfully * @since 5.0.4 */ public static boolean remove(String name, Session sess) { return getProvider().remove(name, sess); }
/** Removes the event queue of the specified application. * <p>Unlike {@link #remove(String, String)}, this method * can be called without an activated execution. * @param name the queue name. * @param wapp the Web application that the event queue is located (i.e., * the application scope) * @return true if it is removed successfully * @since 5.0.4 */ public static boolean remove(String name, WebApp wapp) { return getProvider().remove(name, wapp); }
/** Returns the event queue with the specified name in the * give session (i.e., the session scope). * <p>Unlike {@link #lookup(String, String, boolean)}, this method * can be called without an activated execution. * @param sess the session that the event queue is located (i.e., * the session scope) * @see #lookup(String, String, boolean) * @see #lookup(String, WebApp, boolean) * @since 5.0.2 */ public static <T extends Event> EventQueue<T> lookup(String name, Session sess, boolean autoCreate) { return getProvider().lookup(name, sess, autoCreate); }
/** Returns the event queue with the specified name in the * give application (i.e., the application scope). * <p>Unlike {@link #lookup(String, String, boolean)}, this method * can be called without an activated execution. * @param wapp the Web application that the event queue is located (i.e., * the application scope) * @see #lookup(String, String, boolean) * @see #lookup(String, Session, boolean) * @since 5.0.2 */ public static <T extends Event> EventQueue<T> lookup(String name, WebApp wapp, boolean autoCreate) { return getProvider().lookup(name, wapp, autoCreate); }
return getProvider().lookup(name, scope, autoCreate);