212213214215216217218219
public void setTrafficClass(TrafficClassEnum trafficClass) { LOG.debug("set traffic class '{}' for session '{}'", trafficClass, this); try { socket.setTrafficClass(trafficClass.getValue()); } catch (SocketException e) { throw new ConfigurationException(e); } }
224225226227228229230231
@Override public Boolean isKeepAlive() { try { return socket.getKeepAlive(); } catch (SocketException e) { throw new ConfigurationException(e); } }
237238239240241242243244
public void setKeepAlive(boolean keepAlive) { LOG.debug("set keep alive '{}' for session '{}'", keepAlive, this); try { socket.setKeepAlive(keepAlive); } catch (SocketException e) { throw new ConfigurationException(e); } }
249250251252253254255256
@Override public Boolean isOobInline() { try { return socket.getOOBInline(); } catch (SocketException e) { throw new ConfigurationException(e); } }
262263264265266267268269
public void setOobInline(boolean oobInline) { LOG.debug("set oob inline '{}' for session '{}'", oobInline, this); try { socket.setOOBInline(oobInline); } catch (SocketException e) { throw new ConfigurationException(e); } }
274275276277278279280281
@Override public Integer getSoLinger() { try { return socket.getSoLinger(); } catch (SocketException e) { throw new ConfigurationException(e); } }
287288289290291292293294
public void setSoLinger(int soLinger) { LOG.debug("set so linger '{}' for session '{}'", soLinger, this); try { socket.setSoLinger(soLinger > 0, soLinger); } catch (SocketException e) { throw new ConfigurationException(e); } }
316317318319320321322323
@Override public Integer getTimeout() { try { return socket.getSoTimeout(); } catch (SocketException e) { throw new ConfigurationException(e); } }
328329330331332333334335
@Override public void setTimeout(int timeout) { try { socket.setSoTimeout(timeout); } catch (SocketException e) { throw new ConfigurationException(e); } }