/** * Obtains a {@link ClusterPort} that is automatically chosen at runtime. * * @return a {@link ClusterPort} that is automatically chosen */ public static ClusterPort automatic() { return new ClusterPort(null); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(AvailablePortIterator ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(Iterator<Integer> ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(AvailablePortIterator ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(Iterator<Integer> ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} that is automatically chosen at runtime. * * @return a {@link ClusterPort} that is automatically chosen */ public static ClusterPort automatic() { return new ClusterPort(null); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(Iterator<Integer> ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} that is automatically chosen at runtime. * * @return a {@link ClusterPort} that is automatically chosen */ public static ClusterPort automatic() { return new ClusterPort(null); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(AvailablePortIterator ports) { return new ClusterPort(ports); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(Capture<Integer> port) { return new ClusterPort(port); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(Capture<Integer> port) { return new ClusterPort(port); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(Capture<Integer> port) { return new ClusterPort(port); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(int port) { return new ClusterPort(new PerpetualIterator<>(port)); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(int port) { return new ClusterPort(new PerpetualIterator<>(port)); }
/** * Obtains a {@link ClusterPort} for a specified port. * * @param port the port for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port */ public static ClusterPort of(int port) { return new ClusterPort(new PerpetualIterator<>(port)); }