/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all FolderListeners. Store implementations are * expected to use this method to broadcast Folder events. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type type of FolderEvent * @param folder affected Folder * @see #notifyFolderRenamedListeners */ protected void notifyFolderListeners(int type, Folder folder) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, folder, type); queueEvent(e, folderListeners); }
/** * Notify all FolderListeners. Store implementations are * expected to use this method to broadcast Folder events. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type type of FolderEvent * @param folder affected Folder * @see #notifyFolderRenamedListeners */ protected void notifyFolderListeners(int type, Folder folder) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, folder, type); queueEvent(e, folderListeners); }
/** * Notify all FolderListeners about the renaming of a folder. * Store implementations are expected to use this method to broadcast * Folder events indicating the renaming of folders. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param oldF the folder being renamed * @param newF the folder representing the new name. * @since JavaMail 1.1 */ protected void notifyFolderRenamedListeners(Folder oldF, Folder newF) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, oldF, newF,FolderEvent.RENAMED); queueEvent(e, folderListeners); } }
/** * Notify all FolderListeners about the renaming of a folder. * Store implementations are expected to use this method to broadcast * Folder events indicating the renaming of folders. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param oldF the folder being renamed * @param newF the folder representing the new name. * @since JavaMail 1.1 */ protected void notifyFolderRenamedListeners(Folder oldF, Folder newF) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, oldF, newF,FolderEvent.RENAMED); queueEvent(e, folderListeners); } }
protected void notifyStoreListeners(int type, String message) { queueEvent(new StoreEvent(this, type, message), storeListeners); }
protected void notifyStoreListeners(int type, String message) { queueEvent(new StoreEvent(this, type, message), storeListeners); }
protected void notifyFolderRenamedListeners(Folder oldFolder, Folder newFolder) { queueEvent(new FolderEvent(this, oldFolder, newFolder, FolderEvent.RENAMED), folderListeners); } }
protected void notifyFolderRenamedListeners(Folder oldFolder, Folder newFolder) { queueEvent(new FolderEvent(this, oldFolder, newFolder, FolderEvent.RENAMED), folderListeners); } }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
protected void notifyFolderListeners(int type, Folder folder) { queueEvent(new FolderEvent(this, folder, type), folderListeners); }
protected void notifyFolderListeners(int type, Folder folder) { queueEvent(new FolderEvent(this, folder, type), folderListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all FolderListeners. Store implementations are * expected to use this method to broadcast Folder events. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type type of FolderEvent * @param folder affected Folder * @see #notifyFolderRenamedListeners */ protected void notifyFolderListeners(int type, Folder folder) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, folder, type); queueEvent(e, folderListeners); }
/** * Notify all StoreListeners. Store implementations are * expected to use this method to broadcast StoreEvents. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * StoreListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type the StoreEvent type * @param message a message for the StoreEvent */ protected void notifyStoreListeners(int type, String message) { if (storeListeners == null) return; StoreEvent e = new StoreEvent(this, type, message); queueEvent(e, storeListeners); }
/** * Notify all FolderListeners. Store implementations are * expected to use this method to broadcast Folder events. <p> * * The provided default implementation queues the event into * an internal event queue. An event dispatcher thread dequeues * events from the queue and dispatches them to the registered * FolderListeners. Note that the event dispatching occurs * in a separate thread, thus avoiding potential deadlock problems. * * @param type type of FolderEvent * @param folder affected Folder * @see #notifyFolderRenamedListeners */ protected void notifyFolderListeners(int type, Folder folder) { if (folderListeners == null) return; FolderEvent e = new FolderEvent(this, folder, type); queueEvent(e, folderListeners); }