litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/eventbus/client/nonpublic/RemotePeerService.java
|
@@ -1,32 +1,32 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.eventbus.client.nonpublic; |
3 |
|
- |
|
4 |
|
- |
public interface RemotePeerService { |
5 |
|
- |
boolean forwardTo( ChannelServicePackage pFromPeer ); |
6 |
|
- |
|
7 |
|
- |
/** |
8 |
|
- |
* Stops the Client Side Polling |
9 |
|
- |
*/ |
10 |
|
- |
void stopUnrequestedMessages(); |
11 |
|
- |
|
12 |
|
- |
RemotePeerService dispose(); |
13 |
|
- |
|
14 |
|
- |
public static class Null implements RemotePeerService { |
15 |
|
- |
public static final RemotePeerService INSTANCE = new Null(); |
16 |
|
- |
|
17 |
|
- |
public boolean forwardTo( ChannelServicePackage pFromPeer ) { |
18 |
|
- |
return false; // Report Failure |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public void stopUnrequestedMessages() { |
22 |
|
- |
} |
23 |
|
- |
|
24 |
|
- |
public RemotePeerService dispose() { |
25 |
|
- |
return this; |
26 |
|
- |
} |
27 |
|
- |
|
28 |
|
- |
public String toString() { |
29 |
|
- |
return "Null"; |
30 |
|
- |
} |
31 |
|
- |
} |
32 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.eventbus.client.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
public interface RemotePeerService { |
|
5 |
+ |
boolean forwardTo( ChannelServicePackage pFromPeer ); |
|
6 |
+ |
|
|
7 |
+ |
/** |
|
8 |
+ |
* Stops the Client Side Polling |
|
9 |
+ |
*/ |
|
10 |
+ |
void stopUnrequestedMessages(); |
|
11 |
+ |
|
|
12 |
+ |
RemotePeerService dispose(); |
|
13 |
+ |
|
|
14 |
+ |
public static class Null implements RemotePeerService { |
|
15 |
+ |
public static final RemotePeerService INSTANCE = new Null(); |
|
16 |
+ |
|
|
17 |
+ |
public boolean forwardTo( ChannelServicePackage pFromPeer ) { |
|
18 |
+ |
return false; // Report Failure |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public void stopUnrequestedMessages() { |
|
22 |
+ |
} |
|
23 |
+ |
|
|
24 |
+ |
public RemotePeerService dispose() { |
|
25 |
+ |
return this; |
|
26 |
+ |
} |
|
27 |
+ |
|
|
28 |
+ |
public String toString() { |
|
29 |
+ |
return "Null"; |
|
30 |
+ |
} |
|
31 |
+ |
} |
|
32 |
+ |
} |