public static enum WebServer.MicrotimingMode extends Enum<WebServer.MicrotimingMode>
Enum Constant and Description |
---|
BOTH
Use remote ip and uri as key - this can be used to lear which peer accesses which uris frequently
|
IP
Use the remote ip as key - this can be used to group requests by remote ip
|
URI
Use the requested uri as key - this can be used to group requests by uri
|
Modifier and Type | Method and Description |
---|---|
protected String |
getMicrotimingKey(WebContext context) |
static WebServer.MicrotimingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebServer.MicrotimingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebServer.MicrotimingMode IP
public static final WebServer.MicrotimingMode URI
public static final WebServer.MicrotimingMode BOTH
public static WebServer.MicrotimingMode[] values()
for (WebServer.MicrotimingMode c : WebServer.MicrotimingMode.values()) System.out.println(c);
public static WebServer.MicrotimingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected String getMicrotimingKey(WebContext context)
Copyright © 2018. All rights reserved.