public final class Redirect extends Object
EnvChangeToken.EnvChangeType.Routing| Modifier and Type | Method and Description |
|---|---|
static Redirect |
create(String serverName,
int port)
Creates a new
Redirect |
static Redirect |
decode(io.netty.buffer.ByteBuf buffer)
Decode a
Redirect from ByteBuf. |
int |
getPort()
Get the alternate port.
|
String |
getServerName()
Get the alternate server name.
|
public String getServerName()
public int getPort()
public static Redirect create(String serverName, int port)
RedirectserverName - the server name.port - the TCP port.Redirect.Copyright © 2023. All rights reserved.