/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }
/** * Pause UDPNIOTransport, so I/O events coming on its {@link org.glassfish.grizzly.nio.transport.UDPNIOConnection}s * will not be processed. Use {@link #resume()} in order to resume UDPNIOTransport processing. * * The transport will be paused only if its current state is {@link org.glassfish.grizzly.Transport.State#STARTED}, * otherwise the call will be ignored without exception thrown and the transport * state will remain the same as it was before the method call. */ @Override public void pause() { final Lock lock = state.getStateLocker().writeLock(); lock.lock(); try { if (state.getState() != State.STARTED) { LOGGER.log(Level.WARNING, LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION()); return; } state.setState(State.PAUSING); notifyProbesBeforePause(this); state.setState(State.PAUSED); notifyProbesPause(this); } finally { lock.unlock(); } }