Code example for Selector

Methods: close

0
 
	private void closeSelector(final Selector selector, final boolean inResponseToAnEarlierException)
	{ 
		try 
		{ 
			selector.close();
		} 
		catch (IOException e)
		{ 
			if (inResponseToAnEarlierException)
			{ 
				return; 
			} 
			throw new IllegalStateException(e);
		} 
	} 
 
	private DatagramChannel openChannel()
	{ 
		try 
		{