/** * Gets the {@code SETTINGS_INITIAL_WINDOW_SIZE} value. If unavailable, returns {@code null}. */ public Integer initialWindowSize() { return getIntValue(SETTINGS_INITIAL_WINDOW_SIZE); }
/** * Gets the {@code SETTINGS_MAX_FRAME_SIZE} value. If unavailable, returns {@code null}. */ public Integer maxFrameSize() { return getIntValue(SETTINGS_MAX_FRAME_SIZE); }
/** * Gets the {@code SETTINGS_INITIAL_WINDOW_SIZE} value. If unavailable, returns {@code null}. */ public Integer initialWindowSize() { return getIntValue(SETTINGS_INITIAL_WINDOW_SIZE); }
/** * Gets the {@code SETTINGS_INITIAL_WINDOW_SIZE} value. If unavailable, returns {@code null}. */ public Integer initialWindowSize() { return getIntValue(SETTINGS_INITIAL_WINDOW_SIZE); }
/** * Gets the {@code SETTINGS_MAX_FRAME_SIZE} value. If unavailable, returns {@code null}. */ public Integer maxFrameSize() { return getIntValue(SETTINGS_MAX_FRAME_SIZE); }
/** * Gets the {@code SETTINGS_MAX_FRAME_SIZE} value. If unavailable, returns {@code null}. */ public Integer maxFrameSize() { return getIntValue(SETTINGS_MAX_FRAME_SIZE); }
@Override public void onSettingReceive(Connection connection, Http2Settings settings) { if (!settings.containsKey(SETTINGS_SUBSCRIBE_CONNECTION_COUNT)) { return; } int value = settings.getIntValue(SETTINGS_SUBSCRIBE_CONNECTION_COUNT); if (maxConnectionCount != CONNECTION_COUNT_UNLIMITED && maxConnectionCount >= 0) { value = Math.min(maxConnectionCount, value); log.info("maxConnectionCount: {}, server setting: {}", maxConnectionCount, value); } connectionCount.set(value); log.info("receive setting, connection: {}, subscription count : {} ", connection, connectionCount); }