@Override public Properties getConfig(String pattern) { Assert.hasText(pattern, "Pattern must not be null or empty!"); try { if (isPipelined()) { pipeline(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } if (isQueueing()) { transaction(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } return Converters.toProperties(getConnection().configGet(pattern)); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
@Override public Properties getConfig(String pattern) { Assert.hasText(pattern, "Pattern must not be null or empty!"); try { if (isPipelined()) { pipeline(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } if (isQueueing()) { transaction(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } return Converters.toProperties(getConnection().configGet(pattern)); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
@Override public Properties getConfig(String pattern) { Assert.hasText(pattern, "Pattern must not be null or empty!"); try { if (isPipelined()) { pipeline(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } if (isQueueing()) { transaction(connection.newLettuceResult(getAsyncConnection().configGet(pattern), Converters.mapToPropertiesConverter())); return null; } return Converters.toProperties(getConnection().configGet(pattern)); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }