public DoneableTCPSocketAction(TCPSocketAction item){ super(item);this.builder=new TCPSocketActionBuilder(this, item);this.function=new Function<TCPSocketAction, TCPSocketAction>() { public TCPSocketAction apply(TCPSocketAction item) { return item; } } ; }
public DoneableTCPSocketAction(TCPSocketAction item,Function<TCPSocketAction,TCPSocketAction> function){ super(item);this.builder=new TCPSocketActionBuilder(this, item);this.function=function; } public DoneableTCPSocketAction(TCPSocketAction item){
public DoneableTCPSocketAction(Function<TCPSocketAction,TCPSocketAction> function){ super();this.builder=new TCPSocketActionBuilder(this);this.function=function; } public DoneableTCPSocketAction(TCPSocketAction item,Function<TCPSocketAction,TCPSocketAction> function){
public TCPSocketActionBuilder edit(){ return new TCPSocketActionBuilder(this); }
public T withTcpSocket( TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (T) this; } public TcpSocketNested<T> withNewTcpSocket(){
public T withTcpSocket( TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (T) this; } public TcpSocketNested<T> withNewTcpSocket(){
public T withTcpSocket( TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (T) this; } public TcpSocketNested<T> withNewTcpSocket(){
public T withTcpSocket( TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (T) this; } public TcpSocketNested<T> withNewTcpSocket(){
public A withTcpSocket(TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (A) this; }
public A withTcpSocket(TCPSocketAction tcpSocket){ if (tcpSocket!=null){ this.tcpSocket= new TCPSocketActionBuilder(tcpSocket); _visitables.add(this.tcpSocket);} return (A) this; }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
TcpSocketNested ( TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
public class TcpSocketNestedImpl<N> extends TCPSocketActionFluentImpl<HandlerFluent.TcpSocketNested<N>> implements HandlerFluent.TcpSocketNested<N>,Nested<N>{ private final TCPSocketActionBuilder builder; TcpSocketNestedImpl(){ this.builder = new TCPSocketActionBuilder(this); } TcpSocketNestedImpl(TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); } public N endTcpSocket(){ return and(); } public N and(){ return (N) HandlerFluentImpl.this.withTcpSocket(builder.build()); } }
public class TcpSocketNestedImpl<N> extends TCPSocketActionFluentImpl<ProbeFluent.TcpSocketNested<N>> implements ProbeFluent.TcpSocketNested<N>,Nested<N>{ private final TCPSocketActionBuilder builder; TcpSocketNestedImpl(){ this.builder = new TCPSocketActionBuilder(this); } TcpSocketNestedImpl(TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); } public N endTcpSocket(){ return and(); } public N and(){ return (N) ProbeFluentImpl.this.withTcpSocket(builder.build()); } }
private Probe generateLivenessProbe(DeploymentModel deploymentModel) { if (!deploymentModel.isEnableLiveness()) { return null; } TCPSocketAction tcpSocketAction = new TCPSocketActionBuilder() .withNewPort(deploymentModel.getLivenessPort()) .build(); return new ProbeBuilder() .withInitialDelaySeconds(deploymentModel.getInitialDelaySeconds()) .withPeriodSeconds(deploymentModel.getPeriodSeconds()) .withTcpSocket(tcpSocketAction) .build(); }