File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
rsocket-core/src/main/java/io/rsocket Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 20
20
import io .netty .util .AbstractReferenceCounted ;
21
21
import io .rsocket .frame .FrameHeaderFlyweight ;
22
22
import io .rsocket .frame .SetupFrameFlyweight ;
23
+ import javax .annotation .Nullable ;
23
24
24
25
/**
25
26
* Exposed to server for determination of ResponderRSocket based on mime types and SETUP
@@ -43,6 +44,11 @@ public static ConnectionSetupPayload create(final ByteBuf setupFrame) {
43
44
44
45
public abstract boolean willClientHonorLease ();
45
46
47
+ public abstract boolean isResumeEnabled ();
48
+
49
+ @ Nullable
50
+ public abstract ByteBuf resumeToken ();
51
+
46
52
@ Override
47
53
public ConnectionSetupPayload retain () {
48
54
super .retain ();
@@ -101,6 +107,16 @@ public boolean willClientHonorLease() {
101
107
return SetupFrameFlyweight .honorLease (setupFrame );
102
108
}
103
109
110
+ @ Override
111
+ public boolean isResumeEnabled () {
112
+ return SetupFrameFlyweight .resumeEnabled (setupFrame );
113
+ }
114
+
115
+ @ Override
116
+ public ByteBuf resumeToken () {
117
+ return SetupFrameFlyweight .resumeToken (setupFrame );
118
+ }
119
+
104
120
@ Override
105
121
public ConnectionSetupPayload touch () {
106
122
setupFrame .touch ();
You can’t perform that action at this time.
0 commit comments