KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > core > ConnectionAddressProvider


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.core;
5
6 public interface ConnectionAddressProvider {
7   
8   public static final int ROUND_ROBIN = 0; /*
9                                              * current = -1 - initial condition current >= 0 - normal condition
10                                              */

11   public static final int LINEAR = 1; /*
12                                              * current = -1 - initial condition current >= 0 and < addresses.size() -
13                                              * normal condition current >= addresses.size() - end condition
14                                              */

15
16   String JavaDoc getHostname();
17
18   int getPortNumber();
19
20   int getCount();
21
22   boolean hasNext();
23
24   ConnectionInfo getConnectionInfo();
25
26   ConnectionInfo next();
27
28   void setPolicy(int policy);
29
30 }
Popular Tags