Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3449b9

Browse files
Support Simple Pipe level heart beat (status ok)
1 parent b2d9210 commit b3449b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/SimplePipeRunnable.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ public void setPipeMode(int pipeMode) {
8585
this.pipeMode = pipeMode;
8686
}
8787

88+
/**
89+
* Detect whether it is OK to send a status ok heart beat or not.
90+
* This method is considered as CPU sensitive.
91+
* @param now
92+
* @return whether send heart beat or not
93+
*/
94+
@J2SIgnore
95+
public boolean checkCometStatus(long now) {
96+
return false;
97+
}
98+
8899
@J2SIgnore
89100
public List<SimpleSerializable> getPipeData() {
90101
return pipeData;

0 commit comments

Comments
 (0)