protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { synchronized (this) { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { synchronized (this) { // XXX - why does "&& !hasSeparateStoreConnection" make sense? if (opened && !((IMAPStore)store).hasSeparateStoreConnection()) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }
protected synchronized Object doProtocolCommand(ProtocolCommand cmd) throws ProtocolException { /* * Check whether we have a protocol object, not whether we're * opened, to allow use of the exsting protocol object in the * open method before the state is changed to "opened". */ if (protocol != null) { synchronized (messageCacheLock) { return cmd.doCommand(getProtocol()); } } // only get here if using store's connection IMAPProtocol p = null; try { p = getStoreProtocol(); return cmd.doCommand(p); } finally { releaseStoreProtocol(p); } }