1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.spdy.api;
20
21 import java.util.concurrent.TimeUnit;
22
23 public class SettingsInfo extends Info
24 {
25 public static final byte CLEAR_PERSISTED = 1;
26
27 private final Settings settings;
28 private final boolean clearPersisted;
29
30 public SettingsInfo(Settings settings)
31 {
32 this(0, TimeUnit.SECONDS, settings, false);
33 }
34
35 public SettingsInfo(long timeout, TimeUnit unit, Settings settings, boolean clearPersisted)
36 {
37 super(timeout, unit);
38 this.settings = settings;
39 this.clearPersisted = clearPersisted;
40 }
41
42 public SettingsInfo(Settings settings, boolean clearPersisted)
43 {
44 this(0, TimeUnit.SECONDS, settings, clearPersisted);
45 }
46
47 public boolean isClearPersisted()
48 {
49 return clearPersisted;
50 }
51
52 public byte getFlags()
53 {
54 return isClearPersisted() ? CLEAR_PERSISTED : 0;
55 }
56
57 public Settings getSettings()
58 {
59 return settings;
60 }
61 }