public abstract class LifeCycle extends Object implements Stoppable
| Modifier and Type | Field and Description | 
|---|---|
protected io.netty.channel.EventLoopGroup | 
bossGroup  | 
protected HttpState | 
httpState  | 
protected MockServerLogger | 
mockServerLogger  | 
protected io.netty.bootstrap.ServerBootstrap | 
serverServerBootstrap  | 
protected io.netty.channel.EventLoopGroup | 
workerGroup  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
LifeCycle(Configuration configuration)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Integer> | 
bindServerPorts(List<Integer> requestedPortBindings)  | 
void | 
close()  | 
protected io.netty.channel.EventLoopGroup | 
getEventLoopGroup()  | 
int | 
getLocalPort()  | 
List<Integer> | 
getLocalPorts()  | 
Integer | 
getPort()
Deprecated. 
 
use getLocalPort instead of getPort 
 | 
Scheduler | 
getScheduler()  | 
boolean | 
isRunning()  | 
LifeCycle | 
registerListener(ExpectationsListener expectationsListener)  | 
protected void | 
startedServer(List<Integer> ports)  | 
void | 
stop()  | 
CompletableFuture<String> | 
stopAsync()  | 
protected final MockServerLogger mockServerLogger
protected final io.netty.channel.EventLoopGroup bossGroup
protected final io.netty.channel.EventLoopGroup workerGroup
protected final HttpState httpState
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
protected LifeCycle(Configuration configuration)
public CompletableFuture<String> stopAsync()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected io.netty.channel.EventLoopGroup getEventLoopGroup()
public Scheduler getScheduler()
public boolean isRunning()
@Deprecated public Integer getPort()
public int getLocalPort()
public LifeCycle registerListener(ExpectationsListener expectationsListener)
Copyright © 2022. All rights reserved.