KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > NullConnectionPolicy


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.transport;
5
6 public class NullConnectionPolicy implements ConnectionPolicy {
7
8   public void clientConnected() {
9     return;
10   }
11
12   public void clientDisconnected() {
13     return;
14   }
15
16   public boolean maxConnectionsExceeded() {
17     return false;
18   }
19
20   public int getMaxConnections() {
21     return -1;
22   }
23
24   public void setMaxConnections(int i) {
25     return;
26   }
27
28 }
29
Popular Tags